Fixed signature of verifyClient.

This commit is contained in:
Atsushi Kanehara
2014-08-02 08:57:23 +09:00
parent af65f81664
commit a417b07f5b
Vendored
+2 -2
View File
@@ -91,8 +91,8 @@ declare module "ws" {
port?: number;
server?: http.Server;
verifyClient?: {
(info: {origin: string; secure: boolean; req: http.ClientRequest}): boolean;
(info: {origin: string; secure: boolean; req: http.ClientRequest},
(info: {origin: string; secure: boolean; req: http.ServerRequest}): boolean;
(info: {origin: string; secure: boolean; req: http.ServerRequest},
callback: (res: boolean) => void): void;
};
handleProtocols?: any;