iosignal-cli 4.10.0 → 5.0.1

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 CHANGED
@@ -358,5 +358,3 @@ $ ioip
358
358
 
359
359
  Arduino 라이브러리 관리자에서 `IOSignal`을 검색하여 설치하거나, [`iosignal-arduino`](https://github.com/remocons/iosignal-arduino) GitHub 저장소를 참조하십시오.
360
360
 
361
- ## iosignal 스택
362
- ![IOSignal](./img/iosignal_architecture.png)
package/bin/io-client.js CHANGED
@@ -161,15 +161,18 @@ io.on('@pong', (...data) => {
161
161
  })
162
162
 
163
163
  io.on('ready', () => {
164
+ let date = new Date().toLocaleTimeString();
164
165
  wsConsole.print(
165
166
  Console.Types.Control,
166
- `ready: cid: ${io.cid}`,
167
+ `ready: cid: ${io.cid} ${date}`,
167
168
  Console.Colors.Green)
168
169
  })
169
170
 
170
171
  io.on('close', () => {
171
172
  let date = new Date().toLocaleTimeString()
172
- wsConsole.print(Console.Types.Control, `closed ${date}`, Console.Colors.Yellow)
173
+ wsConsole.print(Console.Types.Control,
174
+ `closed ${date}`,
175
+ Console.Colors.Yellow)
173
176
  })
174
177
 
175
178
 
@@ -217,12 +220,13 @@ io.on('iam_res', (...args) => {
217
220
 
218
221
  io.on('message',(tag,...args)=>{
219
222
  let msg ;
223
+ console.log( typeof args[0] )
220
224
  if(typeof args[0] == 'object'){
221
225
  msg = JSON.stringify( args[0])
222
226
  }else{
223
227
  msg = args;
224
228
  }
225
- wsConsole.print(Console.Types.Incoming, `message: ${tag} ${msg}`, Console.Colors.Green)
229
+ wsConsole.print(Console.Types.Incoming, `-message: ${tag} ${msg}`, Console.Colors.Green)
226
230
  })
227
231
 
228
232
  wsConsole.on('line', (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosignal-cli",
3
- "version": "4.10.0",
3
+ "version": "5.0.1",
4
4
  "description": "IOSignal server and client CLI program.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "boxen": "8.0.1",
22
22
  "chalk": "5.6.2",
23
23
  "commander": "13.1.0",
24
- "iosignal": "^4.10.0",
24
+ "iosignal": "^5.0.1",
25
25
  "redis": "4.7.1"
26
26
  },
27
27
  "repository": {