adonisjs/adonis-websocket

wsServer is not a function

mtnptrsn opened this issue · 2 comments

I have:

  1. Installed the websocket package with adonis install @adonisjs/websocket --yarn
  2. Added '@adonisjs/websocket/providers/WsProvider' to providers
  3. Added .wsServer() to the bootstrap chain (after new 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.

Sorry. I just needed to update my packages.

Thanks @mtnptrsn for sharing, the solution you provided just solved my different problem