mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 13:29:13 -04:00
14 lines
383 B
TypeScript
14 lines
383 B
TypeScript
![]() |
declare module "w-websocket-client/dist/w-websocket-client.umd.js" {
|
||
|
export default class WSC {
|
||
|
constructor(options: {
|
||
|
url: string
|
||
|
token: string
|
||
|
open?: () => void
|
||
|
close?: () => void
|
||
|
message?: (data: any) => void
|
||
|
error?: (err: any) => void
|
||
|
});
|
||
|
|
||
|
send(data: any): void
|
||
|
}
|
||
|
}
|