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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -