Browse Source

Accept 0 as a callback id (#1329)

pull/1331/head
Ruslan Bel'kov 11 months ago
committed by GitHub
parent
commit
e593519692
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/socketio/packet.py

2
src/socketio/packet.py

@ -185,6 +185,6 @@ class Packet(object):
'data': self.data, 'data': self.data,
'nsp': self.namespace, 'nsp': self.namespace,
} }
if self.id: if self.id is not None:
d['id'] = self.id d['id'] = self.id
return d return d

Loading…
Cancel
Save