How to connect to socket.io using python -
i want connect socket.io server using python. there way it?
i have tried websocket-client
suggested in this answer.
ws = create_connection("ws://example.com:1000/socket.io/")
that code throws exception
websocket._exceptions.websocketconnectionclosedexception: connection closed.
i feel missing parameters because js client connection url looks this:
ws://example.com:1000/socket.io/?eio=3&transport=websocket&sid=charsandnumbers
you can @ this: socketio-client
as example,
from socketio_client import socketio socketio = socketio('localhost', 8000)
Comments
Post a Comment