Websocket send object fix