I am trying to trigger events and send data to websocket URL on the specific public channel, via pusher.js library. I am currently testing in postman. I am able to connect to websocket URL and subscribe to the channel but could not trigger events and send data to the event.
Here is what I have tried. I am able to connect to websocket URL and subscribe to the channel as screenshot below.
Screenshot of Channel subscribe success
Now when I try to trigger event and send data, it throw the error as marked in screenshot below. Here is the error in pusher response Unsupported event received on socket: my-event"
Screenshot of Event trigger has issue
As per the official docs of pusher https://pusher.com/docs/channels/library_auth_reference/pusher-websockets-protocol/#channel-events-pusher-channels-greater-client, this should be the correct way to trigger events but its not working. Can any one help me with this?
Thank you
Sushil Shrestha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.