connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
-
i am getting this error frequently
how to resolve this?def on_close(ws, code, reason): print(reason) ws.stop()
i want to restart websocket after it stops
how to do this -
while True: ss.connect()
but the disconnection problem is from the host . they need to solve from their end. i have also reported. and get response as they are working on the websocket .
-
@admin
can you explain why connection gets closed ?
Is there any code example to reconnect ?I rerun script to Start streaming again, can you tell me what logic should I write in onclose function?
-
HI @pt4rh3 You need to write your own piece of code for that.
1 out of 4