diff --git a/src/socketio/packet.py b/src/socketio/packet.py index 1830769..ec1b364 100644 --- a/src/socketio/packet.py +++ b/src/socketio/packet.py @@ -185,6 +185,6 @@ class Packet(object): 'data': self.data, 'nsp': self.namespace, } - if self.id: + if self.id is not None: d['id'] = self.id return d