mirror of https://github.com/waku-org/js-waku.git
Add streams to /connections response
This commit is contained in:
parent
42553202a3
commit
9c65e590c4
|
@ -92,6 +92,7 @@ function connections(waku: Waku | undefined): string[] {
|
||||||
let strConnections = ' connections: [';
|
let strConnections = ' connections: [';
|
||||||
connections.forEach((connection) => {
|
connections.forEach((connection) => {
|
||||||
strConnections += JSON.stringify(connection.stat);
|
strConnections += JSON.stringify(connection.stat);
|
||||||
|
strConnections += "; " + JSON.stringify(connection.streams);
|
||||||
});
|
});
|
||||||
strConnections += ']';
|
strConnections += ']';
|
||||||
response.push(strConnections);
|
response.push(strConnections);
|
||||||
|
|
Loading…
Reference in New Issue