wsServer is not a function
mtnptrsn opened this issue · 2 comments
mtnptrsn commented
I have:
- Installed the websocket package with
adonis install @adonisjs/websocket --yarn
- Added
'@adonisjs/websocket/providers/WsProvider'
to providers - Added
.wsServer()
to the bootstrap chain (afternew Ignitor(require('@adonisjs/fold')).appRoot(__dirname)
)
When trying to start the server i get:
TypeError: (intermediate value).appRoot(...).wsServer is not a function
Am I doing something wrong? I am using adonuxt if that makes a difference.
mtnptrsn commented
Sorry. I just needed to update my packages.
nwashangai commented
Thanks @mtnptrsn for sharing, the solution you provided just solved my different problem