Skip to content

theberserker/SignalRTestDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is very basic example project for SignalR. The application is created on default ASP.NET MVC 5 Template with Authentication.

Project currently consists of three examples:

  • Chat
  • Connected users (PersistentConnection)
  • Connected users (Hub)

##Chat Is trivial, mostly copy-paste example from the official SignalR tutorial. It only adds the name from a login, if there is one. It is a Hub implementation.

##Connected users Is simple connected sessions tracker and has two implementations - with PersistentConnection and Hub. It displays realtime when different users get connected. When users connect or disconnect this is tracked by ConnectedUsersManager and manager is using a ConnectedUsersRepository to store information about connected users.

Both (PersistentConnection and Hub implementations) are populating same, in-memory repository, but realtime update is done only the implementation of the kind that caused change. I.e. if Hub implementation (/Home/ConnectedUsersHub) is opened in new tab only only all sites on this site get realtime update.

About

Testing SignalR, simple track connected users functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages