Browse Source

fix: check if message id is not None instead of boolean casting

pull/1329/head
Ruslan Bel'kov 1 year ago
committed by GitHub
parent
commit
86bec3402c
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