constructor(middlewares = [])
Create a new Refraction object with middlewares.
Arguments
- middlewares (Array): array of middleware to apply to Refraction
Example
const refractionInstance = new Refraction([ eventMiddleware, loggerMiddleware ]);