Skip to content

Commit

Permalink
Handle ping interval and timeout given as strings (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-roboticist authored Nov 10, 2020
1 parent da4afaa commit c169991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ def _connect_websocket(self, url, headers, engineio_path):
'WebSocket connection accepted with ' + str(open_packet.data))
self.sid = open_packet.data['sid']
self.upgrades = open_packet.data['upgrades']
self.ping_interval = open_packet.data['pingInterval'] / 1000.0
self.ping_timeout = open_packet.data['pingTimeout'] / 1000.0
self.ping_interval = int(open_packet.data['pingInterval']) / 1000.0
self.ping_timeout = int(open_packet.data['pingTimeout']) / 1000.0
self.current_transport = 'websocket'

self.state = 'connected'
Expand Down

0 comments on commit c169991

Please sign in to comment.