twilio / media-streams

Quick start guides for configuring and consuming Twilio Media Streams
97 stars 81 forks source link

Stream - WebSocket - Handshake Error [Python] #83

Open mxgordon opened 3 years ago

mxgordon commented 3 years ago

I copied the basic code for Python and tried to run it because my own code wasn't working—it isn't able to do the Handshke. I have an Nginx reverse proxy for the SSL, but I know that isn't the issue as it works for everything else (GET, POST, other WebSockets). I have been running into this issue everywhere, with your code, with my own code, and with different code using flask-socketio. Any advice for how to move forward?

Also what version of socket.io does Twilio use?

sarahcstringer commented 3 years ago

@JohnnyWobble can you paste the error you're getting? Also, to confirm, did you go through all the app setup steps in the Basic Demo readme?

souvikg10 commented 1 month ago

just looking at the docs for media streams

https://www.twilio.com/docs/voice/media-streams/websocket-messages#connected-message

It seems to be using Websocket 1.0.0 which isn't supported in python-socketio packages, probably what flask-socketio is using though