use of the stream object for handling parsing

WebSocketRead successfully handles parsing of WebSocket frames. WebSocketWrite for sending frames is missing.