print('Result: {}'.format(result))
ws.send(json.dumps([json.dumps({'msg': 'connect', 'version': '1', 'support':
    ['1', 'pre2', 'pre1']})]))
result = ws.recv()
Using Python to communicate with web socket using JSON