As described before Refraction exports only one class, you need a set of other library to use all its functionality, see Ecosystem for more information. Here is the list of methods that you can use on its instance:
- constructor(middlewares = )
- publish(channel, param)
You can import it like this:
import Refraction from 'refraction'
var Refraction = require('refraction').default