Skip to content

Commit

Permalink
Disabled socket.io auto-reconnect
Browse files Browse the repository at this point in the history
Disabled auto-reconnect to avoid "handshake timed out" loop
  • Loading branch information
gizmo4487 committed May 15, 2020
1 parent 2761348 commit 7dff998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetrio-chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
tetrio_data = (requests.get(url="https://tetr.io/api/server/environment")).json()
TETRIO_ENV = tetrio_data['signature']
connectMessage = {"token": authToken,"handling": handling,"signature": TETRIO_ENV}
sio = socketio.Client()
sio = socketio.Client(reconnection=False)
inRoom = False
currentRoom = ""
rooms = {}
Expand Down

0 comments on commit 7dff998

Please sign in to comment.