debug websocket method