Search⌘ K
AI Features

Launching the WebSocket Client

Explore how to launch the WebSocket client that connects to a SignalR server, interpret the JSON message structure it uses, and recognize heartbeat signals to maintain a live connection. This lesson helps you understand WebSocket protocol integration with SignalR and how messages and events are handled.

Getting the WebSocketClient started

We will launch our SignalRServer project by executing the following command in the project directory:

dotnet run

Then, we will execute the same command inside the WebSocketClient project directory.

WebSocket client working
WebSocket client working
...