Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

connect and disconnect event on socketio python

@sio.event
def connect(sid, environ, auth):
    print('connect ', sid)

@sio.event
def disconnect(sid):
    print('disconnect ', sid)
Source by python-socketio.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #connect #disconnect #event #socketio #python
ADD COMMENT
Topic
Name
6+3 =