mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #2306 from akanehara/fix-ws-handleUpgrade-sig
fix handleUpgrade() signature
This commit is contained in:
Vendored
+1
-1
@@ -110,7 +110,7 @@ declare module "ws" {
|
||||
constructor(options?: IServerOptions, callback?: Function);
|
||||
|
||||
close(): void;
|
||||
handleUpgrade(request: http.ClientRequest, socket: net.Socket,
|
||||
handleUpgrade(request: http.ServerRequest, socket: net.Socket,
|
||||
upgradeHead: Buffer, callback: (client: WebSocket) => void): void;
|
||||
|
||||
// Events
|
||||
|
||||
Reference in New Issue
Block a user