Branch | Appveyor |
---|---|
master | |
dev |
Enttoit API for retreiving current persisted state of clients and their sensors, and SignalR for pushing real-time updates via websocket. To be used by different clients - web, hybrid and native applications.
- Compile using from VS
- Configure environment variables located in Startup.cs
- REST API comes with swagger UI at
/swagger/ui/index
- To get initial state and updates of sensors via websocket:
- Create proxy
CommonHub
- Subscribe to event
sensorStatePush
(before connecting to proxy)
- To receive notification on entire client going offline or online:
- Subscribe to event
clientStatePush
(before connecting to proxy)
- To receive a number of connected users
- Subscribe to event
onlineUsersPush
(before connecting to proxy)