mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00
parent
87984e2081
commit
9347c9f034
8 changed files with 428 additions and 11 deletions
14
src/tools/websocket-tester/w-websocket-client.d.ts
vendored
Normal file
14
src/tools/websocket-tester/w-websocket-client.d.ts
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue