Starting connection

To initiate a websocket connection:

  • The client sends an HTTP request to the server (known as handshake)
  • If the server accepts, the returned HTTP code is 101, meaning that we switch protocole from HTTP to WS or WSS