<filename>client.py
import socketio

sio = socketio.Client()

@sio.event
def connect():
    print('connection established')

@sio.event
def log(data):
    print(data)

@sio.event
def disconnect():
    print('disconnected from server')

sio.connect('http://localhost:8080')
sio.wait()
<filename>client.py
import socketio

sio = socketio.Client()

@sio.event
def connect():
    print('connection established')

@sio.event
def log(data):
    print(data)

@sio.event
def disconnect():
    print('disconnected from server')

sio.connect('http://localhost:8080')
sio.wait()