iosignal 3.1.0 → 3.3.0
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/README.ko.md +1 -1
- package/README.md +1 -225
- package/dist/io.d.ts +5 -3
- package/dist/io.js +4 -4
- package/dist/io.js.map +1 -1
- package/dist/io.min.js +4 -4
- package/dist/io.min.js.map +1 -1
- package/dist/iosignal.js +285 -182
- package/dist/types/client/IOCore.d.ts +5 -3
- package/examples/react-chat-js/dist/assets/index-e2KOTYW8.js +65 -0
- package/examples/react-chat-js/dist/index.html +1 -1
- package/examples/react-chat-js/package-lock.json +1 -1
- package/examples/server/index.js +62 -9
- package/examples/server/package-lock.json +833 -2
- package/examples/server/package.json +1 -0
- package/examples/server/public/index.html +26 -0
- package/examples/svelte-chat-js/package-lock.json +11 -95
- package/examples/svelte-chat-js/package.json +1 -0
- package/examples/svelte-chat-js/src/app.html +1 -0
- package/examples/svelte-chat-js/src/routes/+layout.svelte +0 -4
- package/examples/svelte-chat-js/src/routes/+page.svelte +5 -0
- package/examples/svelte-chat-js/svelte.config.js +10 -2
- package/index.js +2 -1
- package/package.json +1 -1
- package/src/api/RedisAPI.js +19 -31
- package/src/api/api_reply.js +14 -6
- package/src/api/api_sudo.js +2 -8
- package/src/auth/Auth_Redis.js +8 -3
- package/src/auth/BohoAuth.js +12 -12
- package/src/client/CongPacket.js +2 -0
- package/src/client/IOCore.js +28 -12
- package/src/server/Manager.js +18 -3
- package/src/server/Metric.js +1 -2
- package/src/server/Remote.js +5 -0
- package/src/server/RemoteCore.js +27 -34
- package/src/server/Server.js +139 -66
- package/src/server/serverOption.js +5 -4
- package/test-nodejs/client-playToggle.js +19 -0
|
@@ -208,6 +208,8 @@ export class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
208
208
|
* @param {Buffer} buffer - The incoming data buffer.
|
|
209
209
|
*/
|
|
210
210
|
onData(buffer: Buffer): void;
|
|
211
|
+
did: any;
|
|
212
|
+
uid: any;
|
|
211
213
|
/**
|
|
212
214
|
* Sends an IAM (I Am) message to the server.
|
|
213
215
|
* @param {string} [title] - Optional title for the IAM message.
|
|
@@ -299,9 +301,9 @@ export class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
299
301
|
*/
|
|
300
302
|
get(storeName: string): Promise<any>;
|
|
301
303
|
/**
|
|
302
|
-
* Sends a request to a target and topic.
|
|
303
|
-
* @param {string} target - The target of the request.
|
|
304
|
-
* @param {string} topic - The topic of the request.
|
|
304
|
+
* Sends a request to a target and topic.(remote api call)
|
|
305
|
+
* @param {string} target - The target(api name) of the request.
|
|
306
|
+
* @param {string} topic - The topic(api function name) of the request.
|
|
305
307
|
* @param {...any} args - Optional arguments for the request.
|
|
306
308
|
* @returns {Promise<any>}
|
|
307
309
|
*/
|