Remove newline code from websocket