Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehigh17 committed May 11, 2020
1 parent 91f4ae3 commit 92c1e58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ RECAPTCHA__KEY=... your key here ...
DATABASE__CONNECTIONSTRING=... postgresql connection string ...
```

# Real-time Updates

Ancheta offers a SignalR hub where clients can subscribe to a poll events, such as when a vote is casted a procedure is invoked on the client side. This allows the client to have a dynamic interface properly without implementing extra steps such as periodic polling to the server.

The exposed hub methods are in [NotificationsHub](Ancheta.WebApi/Hubs/NotificationsHub.cs). The procedures invoked on the client side hub can be found in [INotificationsClient](Ancheta.WebApi/Hubs/INotificationsClient.cs).

The hub endpoint is `/notificationshub`.

# Docker

## Docker Image
Expand Down

0 comments on commit 92c1e58

Please sign in to comment.