rxjs-diff-operator
this package adds toDiff/fromDiff operators for RxJs 5. for more deep information about the operator and the protocol, please check observable-diff-operator
Operators:
toDiff
toDiff(): Observable<IObservableDiff>
signature: Description
toDiff operator is used to convert output of an obsersvable stream, into a stream that contains diff information. this operator is inteded to be used on the server.
Example
//emit (1,2,3,4,5);//add 10 to each value;//output: { type: "init", payload: 1, isObject: false }, { type: "update", payload: 2 }, ...;
fromDiff
fromDiff(): Observable<any>
signature: Description
fromDiff operator is used to convert output of an diff obsersvable stream (see toDiff above), into a stream that contains diff information. this operator is inteded to be used on the client.
Example
//emit diff information;//add 10 to each value;//output: 1, 2;
Contributions
Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!