1.0.6-beta • Published 4 years ago

cityline-client v1.0.6-beta

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

npm.io   Build status   NPM version   NPM size  

Cityline-Client

Cityline Client for dotnet core for connecting to a Cityline.Server-instance.

 This library (JavaScript)               Server side (dotnet)

 ┌──────────────────────────────┐       ┌──────────────────────────────┐      ┌──────────────────────────────┐
 │                              │       │                              │      │                              ├─┐
 │                              │       │                              │      │                              │ │
 │       Cityline-Client        │◀─────▶│       Cityline.Server        │─────▶│      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)

Demo

See a demo of the server and javascript client here.

Getting started

To get started create a new instance of the client pointing directly to the servers cityline endpoint:

  var client = new CitylineClient("https://my-server/cityline");

You then subscribe to named events (this mirrors the .Name property of each producer)

  cityline.addEventListener("ping", (event: CustomEvent<Ping>) => console.log("ping"));
1.0.6-beta

4 years ago

1.0.5-beta

5 years ago

1.0.4-beta

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago