iosignal 4.6.0 → 4.7.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.md +33 -7
- package/dist/io.d.ts +4 -4
- package/dist/io.js +3 -3
- package/dist/io.js.map +1 -1
- package/dist/io.min.js +3 -3
- package/dist/io.min.js.map +1 -1
- package/dist/iosignal.js +61 -71
- package/dist/types/client/IOCore.d.ts +4 -4
- package/dist/types/common/constants.d.ts +2 -12
- package/index.js +4 -4
- package/package.json +1 -4
- package/src/auth/key_providers/RedisKeyProvider.js +2 -2
- package/src/client/IOCore.js +8 -8
- package/src/common/constants.js +5 -15
- package/src/server/Manager.js +1 -1
- package/src/server/RemoteCore.js +3 -3
- package/src/server/Server.js +27 -27
- package/src/{api/RedisAPI.js → services/RedisService.js} +6 -6
- package/src/{api/api_reply.js → services/replyService.js} +5 -5
- package/src/{api/api_sudo.js → services/sudoService.js} +3 -3
- package/tsconfig.json +1 -1
- /package/src/{api/api_constant.js → services/constant.js} +0 -0
package/README.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
|
|
4
4
|
IOSignal은 웹 브라우저, Node.js, 아두이노 간의 실시간 통신을 지원합니다. 또한 안전한 인증 및 암호화된 통신을 제공합니다. 시그널링 프로토콜이 내장되어 있어 프로그래밍 없이 서버를 사용할 수 있습니다.
|
|
5
5
|
|
|
6
|
+
## JS examples
|
|
7
|
+
|
|
8
|
+
JS iosignal-examples 저장소 [[github](https://github.com/remocons/iosignal-examples)]
|
|
9
|
+
|
|
10
|
+
### react-chat
|
|
11
|
+
|
|
12
|
+
- vite react & iosignal server
|
|
13
|
+
- react client app
|
|
14
|
+
|
|
15
|
+
[](https://stackblitz.com/github/remocons/iosignal-examples/tree/main/iosignal_react-chat)
|
|
16
|
+
|
|
17
|
+
### svelte5-chat
|
|
18
|
+
- vite svelte & iosignal server
|
|
19
|
+
- svelte5 client app
|
|
20
|
+
|
|
21
|
+
[](https://stackblitz.com/github/remocons/iosignal-examples/tree/main/iosignal_svelte-chat)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### vanilla-chat
|
|
25
|
+
- vite & iosignal server
|
|
26
|
+
- vanilla js client app
|
|
27
|
+
|
|
28
|
+
[](https://stackblitz.com/github/remocons/iosignal-examples/tree/main/iosignal_vanilla-chat)
|
|
6
29
|
|
|
7
30
|
## 기능
|
|
8
31
|
|
|
@@ -15,21 +38,21 @@ IOSignal은 웹 브라우저, Node.js, 아두이노 간의 실시간 통신을
|
|
|
15
38
|
|
|
16
39
|
### 내장 보안
|
|
17
40
|
- 인증
|
|
18
|
-
- 암호화
|
|
19
|
-
- E2EE
|
|
20
|
-
- `Boho`
|
|
41
|
+
- 암호화 (대칭키)
|
|
42
|
+
- E2EE (대칭키)
|
|
43
|
+
- `Boho` [ [github](https://github.com/remocons/boho) ]
|
|
21
44
|
|
|
22
45
|
## 연결
|
|
23
46
|
- 웹 브라우저는 WebSocket을 사용합니다.
|
|
24
47
|
- Node.js는 WebSocket 또는 CongSocket을 사용합니다.
|
|
25
48
|
- 아두이노는 CongSocket을 사용합니다.
|
|
26
49
|
|
|
27
|
-
## IOSignal 서버 아키텍처
|
|
28
|
-

|
|
29
50
|
|
|
30
51
|
## IOSignal 저장소
|
|
31
52
|
|
|
32
|
-
-
|
|
53
|
+
- JS: `iosignal-examples` 저장소 [[github](https://github.com/remocons/iosignal-examples)]
|
|
54
|
+
|
|
55
|
+
- JS: `iosignal` [ [github](https://github.com/remocons/iosignal) | [npm](https://www.npmjs.com/package/iosignal) ]
|
|
33
56
|
- Node.js 서버 (WebSocket, CongSocket)
|
|
34
57
|
- Node.js 클라이언트 (WebSocket, CongSocket)
|
|
35
58
|
- 웹 브라우저 클라이언트 (WebSocket)
|
|
@@ -52,4 +75,7 @@ IOSignal은 웹 브라우저, Node.js, 아두이노 간의 실시간 통신을
|
|
|
52
75
|
|
|
53
76
|
## 라이선스
|
|
54
77
|
|
|
55
|
-
이 코드는 MIT 라이선스에 따라 배포됩니다.
|
|
78
|
+
이 코드는 MIT 라이선스에 따라 배포됩니다.
|
|
79
|
+
|
|
80
|
+
## IOSignal 서버 아키텍처
|
|
81
|
+

|
package/dist/io.d.ts
CHANGED
|
@@ -307,13 +307,13 @@ declare class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
307
307
|
*/
|
|
308
308
|
get(storeName: string): Promise<any>;
|
|
309
309
|
/**
|
|
310
|
-
* Sends a request to a target and topic.(remote
|
|
311
|
-
* @param {string} target - The target(
|
|
312
|
-
* @param {string} topic - The topic(
|
|
310
|
+
* Sends a request to a target and topic.(remote service call)
|
|
311
|
+
* @param {string} target - The target(service name) of the request.
|
|
312
|
+
* @param {string} topic - The topic(service function name) of the request.
|
|
313
313
|
* @param {...any} args - Optional arguments for the request.
|
|
314
314
|
* @returns {Promise<any>}
|
|
315
315
|
*/
|
|
316
|
-
|
|
316
|
+
call(target: string, topic: string, ...args: any[]): Promise<any>;
|
|
317
317
|
/**
|
|
318
318
|
* Subscribes to a channel or channels.
|
|
319
319
|
* @param {string} tag - The tag(s) of the channel(s) to subscribe to (comma-separated).
|