Skip to content

Commit

Permalink
[primus] Add missing method 'open' to Primus.Socket class (Definitely…
Browse files Browse the repository at this point in the history
…Typed#44791)

* Added missing method 'open' to Primus.Socket

* Fixed spacing
  • Loading branch information
AlaaZorkane authored and ngbrown committed Jul 11, 2020
1 parent 199fe4a commit 32a649d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/primus/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Type definitions for primus 7.3
// Project: https://github.com/primus/primus#readme
// Definitions by: Christian Vaagland Tellnes <https://github.com/tellnes>
// Alaa Zorkane <https://github.com/alaazorkane>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.0

Expand Down Expand Up @@ -192,5 +193,6 @@ declare namespace Primus {
on(event: 'reconnect timeout' | 'reconnect failed', handler: (err: Error, opts: ReconnectEventOpts) => void): this;
on(event: 'data', handler: (message: any) => void): this;
on(event: 'error', handler: (err: Error) => void): this;
open(): void;
}
}

0 comments on commit 32a649d

Please sign in to comment.