def server_responded(*body):
    print('response', body)
r = requests.get('localhost:1337/__getcookie/')
emit_data = {'method': 'get', 'url': '/hello', 'headers': {'Cookie': r.
    headers['Set-Cookie']}}
with SocketIO('localhost', 1337) as socketIO:
    pass
How to create Socket.io client in Python to talk to a Sails server