mateusvicente100 / bird-socket-client

This is a client for websocket connection in Delphi.
MIT License
81 stars 27 forks source link

Does not receive messages when connecting to wss://eventsub-beta.wss.twitch.tv/ws #13

Open DelphiWorlds opened 1 year ago

DelphiWorlds commented 1 year ago

As per title, (using the demo supplied) no messages are received when connecting to wss://eventsub-beta.wss.twitch.tv/ws Verified with other code that the service does send them

mateusvicente100 commented 1 year ago

May you need some password or encrypt to connect in a channel like this I believe. This will not be a public link. Perhaps, you can try with html sample on sources in the server. The code is simple and uses JavaScript.

On Thu, 1 Dec 2022 at 00:45 DelphiWorlds @.***> wrote:

As per title, (using the demo supplied) no messages are received when connecting to wss://eventsub-beta.wss.twitch.tv/ws Verified with other code that the service does send them

— Reply to this email directly, view it on GitHub https://github.com/mateusvicente100/bird-socket-client/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMBAGRD5TL6HTWKEJIURWA3WLANMXANCNFSM6AAAAAASQKLXQE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DelphiWorlds commented 1 year ago

It doesn't need a password - as per the description in the issue, using a different WebSocket client (Delphi-based) it works. This one does not

RadstaRs commented 2 weeks ago

Same problem for me with URL wss://eventsub.wss.twitch.tv/ws No MESSAGE EventType, only OPEN:

HTTP/1.1 101 Switching Protocols Connection: upgrade Date: Wed, 25 Sep 2024 22:11:14 GMT Upgrade: websocket Sec-WebSocket-Accept: oodvbFInA50lBw17Wh5iNb6Oqps= X-Cache: Miss from cloudfront Via: 1.1 32c8da10203574baccb74b8f771a7ffa.cloudfront.net (CloudFront) X-Amz-Cf-Pop: FRA50-C1 X-Amz-Cf-Id: MG9lIpNHibU_vY-MHMQCQHLZnXZ2S-au2PaeikH7BOBpSrbEWfzyoQ==

No password needed or special encryption. Documentation: https://dev.twitch.tv/docs/eventsub/handling-websocket-events/

Edit: Fixed with PING-PONG fix from: https://github.com/cayque10/bird-socket-client/commits/Fix-ping-pong/