Can't connected to adonis ws from client

hello

I’m using adonis WebSocket in server-side, in client-side I’m using flutter & dart, but I can’t subscribe channel from the client

I use IOWebSocketChannel and Stomp but no result

can I use socket io? if I can, then how can send listener data to the controller

1 Like

Hello @irdeveloper89 and welcome to community!

If you want to make custom client be sure to go thro https://github.com/adonisjs/adonis-websocket-protocol

Especially the #packets section, since Adonis uses small WS packages to subscribe to channels

For example: A packet to join a channel looks as follows.

{
  t: 1,
  d: { topic: 'chat' }
}
1 Like