ASP.NET WEB API with SignalR

This is a demo of a ASP.NET Web API app that uses SignalR to push real-time messages to its clients.


The Web API has 2 endpoints.

  • RandomizeScores : Radomly increases the current score in the player score object and broadcast the score (for testing only)
  • RecordScore: Which takes a param of the player object to record and broadcast the score

View Swagger

Record Score Form

Form page that user can input a score and will post to Web API for realtime publishing


View Score Page

Sample HTML page that updates realtime when a score is published