in before websocket convert