You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
390 B
16 lines
390 B
|
|
|
|
declare module "ws" { |
|
export class WebSocket { |
|
constructor(...args: Array<any>); |
|
|
|
onopen: null | ((...args: Array<any>) => any); |
|
onmessage: null | ((...args: Array<any>) => any); |
|
onerror: null | ((...args: Array<any>) => any); |
|
|
|
readyState: number; |
|
|
|
send(payload: any): void; |
|
close(code?: number, reason?: string): void; |
|
} |
|
}
|
|
|