-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking change: integrate state/manifest update logic.
`Service`s now include the logic for state updates (generating messages/highlighting car numbers) and manifest updates (deep equality check, additional metadata) that were previously exported as `processStateUpdate` and `processManifestUpdate`. Those two methods are no longer needed by clients and have been removed. Additionally, `Service`s no longer take event handlers in the constructor; instead `Service` extends `EventEmitter`, and its events can be subscribed to in the usual way (e.g. `serviceInstance.on(event, handler)`). The new `Events` enumeration lists the types of events that may be emitted.
- Loading branch information
1 parent
29776c9
commit 9eee3c3
Showing
1 changed file
with
66 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters