Fixed marshalling bug in websocket connection