Hi there,
I've been softly banging my head against my desk for long enough so i thought i might ask for some help...

I've been trying to establish a websoket connection between a chrome extension and a java server and i' got this far:

The client connects to server and sends handshake along the lines of:

Java Code:
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: localhost:4444
Origin: chrome-extension://gfndmmgdfjmdfknkdlmjmadlpjdogbmh
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: m2KMLKq3zbteS1pS0YPu5g==
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: x-webkit-deflate-frame
The server then replies:

Java Code:
HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: qI/0aM9x3AC2E+fLwpdPJpkiMTs=\r\n\r\n
Then, nothing, I can't see the msg arriving at the client side and i can't send anything to the client anymore.

Any idea what i'm doing wrong? Thanks in advance. Smollett.