ethers.js/src.ts/thirdparty.d.ts
2022-09-05 16:14:43 -04:00

17 lines
390 B
TypeScript

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;
}
}