iosignal 4.6.1 → 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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "liveServer.settings.port": 5502
2
+ "liveServer.settings.port": 5501
3
3
  }
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
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](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
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](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
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](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` 덕분입니다 [ [github](https://github.com/remocons/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
- ![IOSignal](./docs/iosignal_architecture.png)
29
50
 
30
51
  ## IOSignal 저장소
31
52
 
32
- - Javascript: `iosignal` [ [github](https://github.com/remocons/iosignal) | [npm](https://www.npmjs.com/package/iosignal) ]
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
+ ![IOSignal](./docs/iosignal_architecture.png)
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 api call)
311
- * @param {string} target - The target(api name) of the request.
312
- * @param {string} topic - The topic(api function name) of the request.
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
- req(target: string, topic: string, ...args: any[]): Promise<any>;
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).