Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

define event on socketio python

@sio.event
def my_event(sid, data):
    pass

@sio.on('my custom event')
def another_event(sid, data):
    pass
Source by python-socketio.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #define #event #socketio #python
ADD COMMENT
Topic
Name
5+7 =