websocket code format