WebSocketWriter now takes socket as argument in constructor
renamed method prefix of WebSocketReader to read