Skip to content

Commit

Permalink
fix(example): assert non null on socket get
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSchick committed Aug 1, 2017
1 parent c1bab86 commit d57ed1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const c = new Client({
});

c.connect();
c.getSocket().on('data', console.log);
c.getSocket()!.on('data', console.log);
c.on('error', console.error);
c.on('connect', () => {
c.setIncludeDetectors(false);
Expand Down

0 comments on commit d57ed1a

Please sign in to comment.