Код: Выделить всё
wss://ws.qxbroker.com/socket.io/?EIO=3&transport=websocket
Код: Выделить всё
42["authorization",{"session":"oZA1xa5d4DYvNJoxxxxxxO","isDemo":1}]
вот мой код
Код: Выделить всё
from websocket import create_connection
import json
# Launch the connection to the server.
ws = create_connection('wss://ws.qxbroker.com/socket.io/?EIO=3&transport=websocket')
# Perform the handshake.
ws.send(json.dumps('42["authorization",{"session":"oZA1xa5d4DYvNJoe4kZhL911QxxxxxxxxxxsPCSTMO","isDemo":1}]'))
# Printing all the result
while True:
try:
result = ws.recv()
print(result)
except Exception as e:
print(e)
break
Подробнее здесь: https://stackoverflow.com/questions/699 ... -in-python