Skip to content

Commit

Permalink
fix: websocket and typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
YoDaMa committed Jun 21, 2021
1 parent cc82753 commit 9979443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"readable-stream": "^3.6.0",
"reinterval": "^1.1.0",
"split2": "^3.1.0",
"ws": "^7.3.1",
"ws": "^7.5.0",
"xtend": "^4.0.2"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion types/lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
export declare type OnPacketCallback = (packet: Packet) => void
export declare type OnCloseCallback = () => void
export declare type OnErrorCallback = (error: Error) => void
export declare type PacketCallback = (error?: Error, packet?: Packet) => any
export declare type CloseCallback = () => void
export declare type CloseCallback = (error?: Error) => void

export interface IStream extends events.EventEmitter {
pipe (to: any): any
Expand Down

0 comments on commit 9979443

Please sign in to comment.