websocket example for client