sample for websocket