mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Fix w3cwebsocket type definitions
This commit is contained in:
Vendored
+4
-2
@@ -679,9 +679,11 @@ declare class w3cwebsocket {
|
||||
url: string;
|
||||
readyState: number;
|
||||
protocol?: string;
|
||||
extenstions: IExtension[];
|
||||
extensions: IExtension[];
|
||||
bufferedAmount: number;
|
||||
|
||||
binaryType: "arraybuffer";
|
||||
|
||||
CONNECTING: number;
|
||||
OPEN: number;
|
||||
CLOSING: number;
|
||||
@@ -692,7 +694,7 @@ declare class w3cwebsocket {
|
||||
onclose: () => void;
|
||||
onmessage: (message: any) => void;
|
||||
|
||||
constructor(url: string, protocols?: string[], origin?: string, headers?: any[], requestOptions?: object, clientConfig?: IClientConfig);
|
||||
constructor(url: string, protocols?: string | string[], origin?: string, headers?: any[], requestOptions?: object, clientConfig?: IClientConfig);
|
||||
|
||||
send(data: Buffer): void;
|
||||
send(data: IStringified): void;
|
||||
|
||||
Reference in New Issue
Block a user