websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 401
I am trying to connect to websocket with the given code below.
How to send a complex message to the server via websocket
I’m trying to send a message to the server:
42[“s_api”,{“data”:{“battle”:{“setAuto”:1,”debug”:”333″}},”loading”:true}]