Skip to content

Commit

Permalink
Accept 0 as a callback id (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar authored Apr 28, 2024
1 parent 4201981 commit e593519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socketio/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 185,6 @@ def _to_dict(self):
'data': self.data,
'nsp': self.namespace,
}
if self.id:
if self.id is not None:
d['id'] = self.id
return d

0 comments on commit e593519

Please sign in to comment.