|
@@ -41,8 +41,9 @@ export default class AdminCommands extends Vue {
|
|
|
|
|
|
this.responses = []
|
|
this.responses = []
|
|
for (let index = 0; index < data.length; index++) {
|
|
for (let index = 0; index < data.length; index++) {
|
|
|
|
+ this.cnt++
|
|
this.responses.push({
|
|
this.responses.push({
|
|
- cnt: this.cnt++,
|
|
|
|
|
|
+ cnt: this.cnt,
|
|
data: JSON.stringify(
|
|
data: JSON.stringify(
|
|
this.parseData(data[index]),
|
|
this.parseData(data[index]),
|
|
null, 3
|
|
null, 3
|
|
@@ -63,13 +64,29 @@ export default class AdminCommands extends Vue {
|
|
"token": data.token,
|
|
"token": data.token,
|
|
"lastActionOn": data.lastActionOn,
|
|
"lastActionOn": data.lastActionOn,
|
|
"connections": data.connections.map(c => ({
|
|
"connections": data.connections.map(c => ({
|
|
- "client": c.client,
|
|
|
|
- "transport": c.transport,
|
|
|
|
- "id": c.id,
|
|
|
|
|
|
+ "transport": c.client.transport,
|
|
|
|
+ "id": c.client.id,
|
|
}))
|
|
}))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// x = [
|
|
|
|
+// {
|
|
|
|
+// "id": "9z55r61",
|
|
|
|
+// "token": "9z55r67016",
|
|
|
|
+// "lastActionOn": "2021-07-17T13:25:04.406Z",
|
|
|
|
+// "timeout": 10000,
|
|
|
|
+// "connections": [
|
|
|
|
+// {
|
|
|
|
+// "isDone": false,
|
|
|
|
+// "client": {
|
|
|
|
+// "transport": "socketio",
|
|
|
|
+// "id": "O6vmYhBbpHiDmibmAAAE",
|
|
|
|
+// "address": "::1",
|
|
|
|
+// "url": "/socket.io/?EIO=3&transport=polling&t=Ngqf3qf"
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// ]
|
|
|
|
+// }
|
|
parseRequest(data) {
|
|
parseRequest(data) {
|
|
const result = {
|
|
const result = {
|
|
ucpId: data.Message.header.security.ucpId,
|
|
ucpId: data.Message.header.security.ucpId,
|