mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added optional callback for close function
This commit is contained in:
2
ws/ws.d.ts
vendored
2
ws/ws.d.ts
vendored
@@ -110,7 +110,7 @@ declare module "ws" {
|
||||
|
||||
constructor(options?: IServerOptions, callback?: Function);
|
||||
|
||||
close(): void;
|
||||
close(cb?: () => {}): void;
|
||||
handleUpgrade(request: http.ServerRequest, socket: net.Socket,
|
||||
upgradeHead: Buffer, callback: (client: WebSocket) => void): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user