title: Swift socket invalid HTTP upgrade
body: <p>Good day,</p>
  
  <p>I've established very simple Python server (Twisted framework) on localhost:80. It works ok with telnet - i can send and recieve simple messages. But i need to connect Swift iOS app client to this server. App running on simulator.</p>
  
  <p>I'm using Socket_IO_Client_Swift framework. At this moment, i've just created socket object with "localhost:80" parameter and call connect() method on start of application.</p>
  
  <p>Server can see the signal from client, but client disconnect immidietly after connection with this message:</p>
  
  <p>Got event: disconnect, with items: Optional((
      "Invalid HTTP upgrade"</p>
  
  <p>What can i do to fix this, and what is HTTP upgrade?</p>
  
  <p>Thanks</p>