Skip to content

Commit

Permalink
Update connect.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaledin committed Sep 25, 2017
1 parent 8aaa456 commit 7bd0fb4
Show file tree
Hide file tree
Showing 3 changed files with 566 additions and 589 deletions.
2 changes: 1 addition & 1 deletion lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var Connect = (function () {
this.adapterConnected = false;
this.commandsAwaitingResponse = [];
this.guaranteedCommandsToBeSent = [];
this.pushEvents = new rxjs_1.ReplaySubject(null);
this.pushEvents = new rxjs_1.ReplaySubject(1);
this.instanceId = params.instanceId || 'connect';
this.adapter = params.adapter;
this.payloadTypesNotAwaitingResponse = params.payloadTypesNotAwaitingResponse || [];
Expand Down
2 changes: 1 addition & 1 deletion lib/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Connect {
private adapterConnected = false;
private commandsAwaitingResponse: CacheCommand[] = [];
private guaranteedCommandsToBeSent: CacheCommand[] = [];
private pushEvents = new ReplaySubject<IMessage>(null);
private pushEvents = new ReplaySubject<IMessage>(1);
private payloadTypesNotAwaitingResponse: number[];

constructor(params: IConnectionParams) {
Expand Down
Loading

0 comments on commit 7bd0fb4

Please sign in to comment.