iosignal-cli 4.8.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
@@ -108,7 +108,8 @@ const defaultWebSocketPort = 7777;
108
108
  console.log(options)
109
109
 
110
110
  if (!options.connect) {
111
- options.connect = 'localhost:' + defaultWebSocketPort;
111
+ // options.connect = 'localhost:' + defaultWebSocketPort;
112
+ options.connect = 'wss://io.remocon.kr/ws'
112
113
  }
113
114
 
114
115
 
@@ -160,15 +161,18 @@ io.on('@pong', (...data) => {
160
161
  })
161
162
 
162
163
  io.on('ready', () => {
164
+ let date = new Date().toLocaleTimeString();
163
165
  wsConsole.print(
164
166
  Console.Types.Control,
165
- `ready: cid: ${io.cid}`,
167
+ `ready: cid: ${io.cid} ${date}`,
166
168
  Console.Colors.Green)
167
169
  })
168
170
 
169
171
  io.on('close', () => {
170
172
  let date = new Date().toLocaleTimeString()
171
- wsConsole.print(Console.Types.Control, `closed ${date}`, Console.Colors.Yellow)
173
+ wsConsole.print(Console.Types.Control,
174
+ `closed ${date}`,
175
+ Console.Colors.Yellow)
172
176
  })
173
177
 
174
178
 
@@ -185,6 +189,14 @@ io.on('auth_fail', () => {
185
189
  `Boho auth_fail.`,
186
190
  Console.Colors.Yellow)
187
191
  })
192
+
193
+ io.on('auth_clear', () => {
194
+ wsConsole.print(
195
+ Console.Types.Control,
196
+ `Boho auth_clear.`,
197
+ Console.Colors.Yellow)
198
+ })
199
+
188
200
  io.on('over_size', () => {
189
201
  wsConsole.print(
190
202
  Console.Types.Control,
@@ -208,12 +220,13 @@ io.on('iam_res', (...args) => {
208
220
 
209
221
  io.on('message',(tag,...args)=>{
210
222
  let msg ;
223
+ console.log( typeof args[0] )
211
224
  if(typeof args[0] == 'object'){
212
225
  msg = JSON.stringify( args[0])
213
226
  }else{
214
227
  msg = args;
215
228
  }
216
- wsConsole.print(Console.Types.Incoming, `message: ${tag} ${msg}`, Console.Colors.Green)
229
+ wsConsole.print(Console.Types.Incoming, `-message: ${tag} ${msg}`, Console.Colors.Green)
217
230
  })
218
231
 
219
232
  wsConsole.on('line', (data) => {
@@ -256,7 +269,7 @@ wsConsole.on('line', (data) => {
256
269
  break;
257
270
 
258
271
  case 'id':
259
- console.log(`cid: ${io.cid} level: ${io.level}`)
272
+ console.log(`state: ${io.stateName} cid: ${io.cid} level: ${io.level}`)
260
273
  break;
261
274
 
262
275
  case 'sudo':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosignal-cli",
3
- "version": "4.8.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.8.0",
24
+ "iosignal": "^5.0.1",
25
25
  "redis": "4.7.1"
26
26
  },
27
27
  "repository": {