Skip to content

Commit

Permalink
removed now superfluent rxjs code and added parameter to publishReplay.
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausen committed Jun 21, 2018
1 parent 430c8df commit d05ac86
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 177 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-mqtt",
"version": "6.3.0",
"version": "6.3.1",
"description": "ngx mqtt client library",
"main": "bundles/ngx-mqtt.min.js",
"module": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class MqttService {
* Every new subscriber gets the latest message.
*/
public observeRetained(filterString: string): Observable<IMqttMessage> {
return this._generalObserve(filterString, () => publishReplay());
return this._generalObserve(filterString, () => publishReplay(1));
}

/**
Expand Down
141 changes: 0 additions & 141 deletions src/rxjs/CoditionalReplaySubject.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/rxjs/operators/publishReplayConditionally.ts

This file was deleted.

0 comments on commit d05ac86

Please sign in to comment.