I can connect to the server but I can't receive any message from a specific channel and event.

I'm working in c# with the websocket sharp library. Should I change library? The server uses php and laravel

The following code works in java, I need to do the same for c# but don't know how to do this specific

In java this works:

window.Echo = new Echo({ broadcaster: 'pusher', key: '123456', cluster: 'mt1', forceTLS: true, wsHost: 'ws.test.bet', wsPort: 6781, enabledTransports: ['ws', 'wss'] })

  window.Echo.channel('events').listen('RealTimeEvent', (e) => console.log(' Message: ' + e.message)
0

There are 0 best solutions below