@zgfe/business-lib 1.1.29-visual.13 → 1.1.29-visual.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/socket/index.d.ts +5 -5
- package/es/socket/types.d.ts +0 -1
- package/package.json +2 -2
package/es/socket/index.d.ts
CHANGED
|
@@ -10,17 +10,17 @@ declare class SocketClient {
|
|
|
10
10
|
private appkey?;
|
|
11
11
|
constructor(url: string, appkey: string, params?: Record<string, any>);
|
|
12
12
|
emit(event: string, payload?: SocketClientTypes.Message['data']['payload']): void;
|
|
13
|
-
on(type: SocketClientTypes.EventType | string, handle:
|
|
14
|
-
onConnected(handle:
|
|
15
|
-
onDisconnected(handle:
|
|
16
|
-
onError(handle:
|
|
13
|
+
on<T>(type: SocketClientTypes.EventType | string, handle: (data?: T) => void): void;
|
|
14
|
+
onConnected(handle: () => void): void;
|
|
15
|
+
onDisconnected(handle: () => void): void;
|
|
16
|
+
onError(handle: (data?: Error) => void): void;
|
|
17
17
|
private _onError;
|
|
18
18
|
private _onClose;
|
|
19
19
|
private _onOpen;
|
|
20
20
|
private onMessage;
|
|
21
21
|
private ping;
|
|
22
22
|
removeAllListeners(): void;
|
|
23
|
-
removeListener(event: string, handle?:
|
|
23
|
+
removeListener(event: string, handle?: (data?: any) => void): void;
|
|
24
24
|
private getToken;
|
|
25
25
|
open(url?: string, params?: Record<string, any>): void;
|
|
26
26
|
close(): void;
|
package/es/socket/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.29-visual.
|
|
3
|
+
"version": "1.1.29-visual.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": "^16.12.0 || ^17.0.0",
|
|
60
60
|
"yorkie": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "40a1fa79b213e69d9564f0fa845f4fae01f2db77"
|
|
63
63
|
}
|