Ajax to Websocket and logs