iosignal-cli 3.2.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.
Files changed (2) hide show
  1. package/bin/io-client.js +21 -1
  2. package/package.json +2 -2
package/bin/io-client.js CHANGED
@@ -141,6 +141,8 @@ io.listen('@', (...args) => {
141
141
  console.log('rcv @', args)
142
142
  })
143
143
 
144
+
145
+
144
146
  if (options.joinChannel) {
145
147
  console.log('options joinchannel', options.joinChannel)
146
148
  io.channels.add(options.joinChannel)
@@ -189,6 +191,19 @@ io.on('over_size', () => {
189
191
  Console.Colors.Yellow)
190
192
  })
191
193
 
194
+ io.on('echo', (...args) => {
195
+ wsConsole.print(
196
+ Console.Types.Control,
197
+ `ECHO ${args}`,
198
+ Console.Colors.Yellow)
199
+ })
200
+ io.on('iam_res', (...args) => {
201
+ // console.log('log: ', args)
202
+ wsConsole.print(
203
+ Console.Types.Incoming,
204
+ `IAM_RES ${args}`,
205
+ Console.Colors.Yellow)
206
+ })
192
207
 
193
208
  io.on('message', (data, isBinary) => {
194
209
 
@@ -388,7 +403,12 @@ wsConsole.on('line', (data) => {
388
403
  )
389
404
  }
390
405
  } else {
391
- io.send( data )
406
+ // io.send( data )
407
+ wsConsole.print(
408
+ Console.Types.Error,
409
+ 'command list: .signal .sig .listen .publish .pub .subscribe .sub .unsub .ping .pong .id .iam .open .connect .close .login .auth .quit .exit',
410
+ Console.Colors.Yellow
411
+ )
392
412
  }
393
413
  wsConsole.prompt()
394
414
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosignal-cli",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
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": "^3.2.0",
24
+ "iosignal": "^3.3.0",
25
25
  "redis": "4.7.1"
26
26
  },
27
27
  "repository": {