title: Why can't I connect to this websocket?
body: <p>Having great difficulty getting a response, even a reassuring error response, after attempts to connect to Coinfloor's websocket API. Docs here: <a href="https://github.com/coinfloor/API/blob/master/WEBSOCKET-README.md" rel="nofollow noreferrer">https://github.com/coinfloor/API/blob/master/WEBSOCKET-README.md</a></p>
  
  <blockquote>
    <p>'Commands, replies, and notifications traverse the WebSocket in text
    frames with JSON-formatted payloads.'</p>
  </blockquote>
  
  <p>Here is my attempt:</p>
  
  <pre><code>import socket
  
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  server = 'api.coinfloor.co.uk'
  port = 443
  server_ip = socket.gethostbyname('api.coinfloor.co.uk')
  payload = '{"method": "WatchTicker","base": int("0xF800", 16),"counter":int("0xFA20",16),"watch":True}'
  s.connect((server_ip, port))
  s.sendall(payload.encode('utf-8'))
  result = s.recv(4096)
  print(result)
  </code></pre>
  
  <p>It just returns this:  </p>
  
  <pre><code>b'' 
  </code></pre>
  
  <p>i.e. an empty byte string.</p>