adonisjs/adonis-websocket

Channels have no subscriptions when called from adonis-scheduler task

Closed this issue · 4 comments

I've tried using adonis-websocket package with adonis-scheduler and when I tried getting channels subscriptions it showed none. But it was shown when called from HTTP contoller.

Here is an example code. Everything else is used as in chat example from docs.
https://gist.github.com/lukasrakauskas/9bd6cc1095943a80465e59b5761f0f0f

When you run your process using adonis-scheduler, how do you expect your clients to join channels?

Well I thought channels data was supposed to be the same application wide. My bad then.

It’s share application wide. But when you start 2 processes, then they are 2 different applications.

Closing since not actionable