A client based on websocket