websocket handshake partially implemented