Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
fix(client): init sub id counter at zero
Browse files Browse the repository at this point in the history
Previously subscription ID was always NaN
  • Loading branch information
paralin committed Sep 7, 2016
1 parent f6e36a7 commit a96b285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/metric-stream-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class MetricStreamClient {

constructor(private send: (message: IMSClientMessage) => void) {
this.subscriptions = {};
this.subIdCounter = 0;
}

public handleMessage(message: IMSServerMessage) {
Expand Down

0 comments on commit a96b285

Please sign in to comment.