Handles an HTTP request by verifying that it's a legitimate websocket
request, then sends a 101 SWITCHING PROTOCOLS response, and finally,
registers a new websocket connection with the server's manager. If an
invalid request is given, then a client error response code will be
sent back.
Handles an HTTP request by verifying that it's a legitimate websocket request, then sends a 101 SWITCHING PROTOCOLS response, and finally, registers a new websocket connection with the server's manager. If an invalid request is given, then a client error response code will be sent back.