improve the way to register

This commit is contained in:
Peter Maquiran
2022-01-10 09:35:17 +01:00
parent abdc9ea231
commit 053e5a2370
2 changed files with 52 additions and 33 deletions
@@ -0,0 +1,14 @@
export interface wsCallbacksParams {
type: 'Offline' | 'Online' | 'Open' | 'Onmessage',
funx: Function
options?: {
runOnces?: boolean
}
requestId?: string
}
export interface msgQueue {
message: object,
requestId: string
}