Correctly decode message from the WebSocket