used client-relative uri for websocket. Tidied up the header.