Skip to content

Typo in the documentation #19

@prokher

Description

@prokher

I think in this example second function must be decorated with @sio.on('leave room') instead of @sio.on('enter room').

@sio.on('enter room')
def enter_room(sid, data):
    sio.enter_room(sid, data['room'])

@sio.on('enter room')
def leave_room(sid, data):
    sio.leave_room(sid, data['room'])

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions