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 +0 -2
- package/bin/io-client.js +7 -3
- package/package.json +2 -2
package/README.md
CHANGED
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,
|
|
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,
|
|
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": "
|
|
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": "^
|
|
24
|
+
"iosignal": "^5.0.1",
|
|
25
25
|
"redis": "4.7.1"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|