import socketio

# create a Socket.IO server
sio = socketio.Server()

# wrap with a WSGI application
app = socketio.WSGIApp(sio)

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

@sio.on('my custom event')
def another_event(sid, data):
    pass

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

@sio.event
def disconnect(sid):
    print('disconnect ', sid)
20f856d2bb876b8efca86aa6d0db3d62059e0800
<mask token>


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


<mask token>


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


@sio.event
def disconnect(sid):
    print('disconnect ', sid)

<mask token>


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


@sio.on('my custom event')
def another_event(sid, data):
    pass


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


@sio.event
def disconnect(sid):
    print('disconnect ', sid)

<mask token>
sio = socketio.Server()
app = socketio.WSGIApp(sio)


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


@sio.on('my custom event')
def another_event(sid, data):
    pass


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


@sio.event
def disconnect(sid):
    print('disconnect ', sid)

import socketio
sio = socketio.Server()
app = socketio.WSGIApp(sio)


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


@sio.on('my custom event')
def another_event(sid, data):
    pass


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


@sio.event
def disconnect(sid):
    print('disconnect ', sid)

import socketio

# create a Socket.IO server
sio = socketio.Server()

# wrap with a WSGI application
app = socketio.WSGIApp(sio)

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

@sio.on('my custom event')
def another_event(sid, data):
    pass

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

@sio.event
def disconnect(sid):
    print('disconnect ', sid)