I’ve been using python to connect to ws:// websocket streams with great success using websocket-client. However, when I try to connect to an https://-schemed stream, the library complains about https not being supported. This page seems to suggest that it’s possible to connect to such a stream via https using socket.io in javascript.
I’m not a javascript master, so there might be some subtlety I’m missing here, but can this be done in python?
It seems I was confusing websockets, which are implemented with a standard protocol, and socket.io sockets, which seem to implement a handshake between the server and the client to iron out browser incompatibilities.
Python has a good websockets implementation, but doesn’t seem to have a good socket.io socket implementation.