Cityline
Real-time library for sending events to Cityline clients. Deeply inspired by server sent events but initiated via posts which allow a much bigger state object with state across multiple producers.
Client Side (JS) Server side (C#)
┌──────────────────────────────┐ ┌──────────────────────────────┐ ┌──────────────────────────────┐
│ │ │ │ │ ├─┐
│ │ │ │ │ │ │
│ cityline-client │◀─────▶│ CitylineService │─────▶│ ICitylineProducer │ │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
└──────────────────────────────┘ └──────────────────────────────┘ └──┬───────────────────────────┘ │
└─────────────────────────────┘
- raises events - streams data to clients
- get specific frame - calls producers
(for preloading data) - allows state from call to call
- wait for specific set of frames
(app initialization)