Skip to content

Commit

Permalink
Send count on first connect for better UX.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Apr 10, 2024
1 parent 3a9e222 commit e141f56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Client/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
const ws = new WebSocket(websocketUrl);
ws.onopen = () => {
console.log("WebSocket connection established.");
ws.send("count");
};
ws.onclose = () => {
console.log("WebSocket connection closed.");
Expand Down

0 comments on commit e141f56

Please sign in to comment.