Add streams to /connections response

This commit is contained in:
Franck Royer 2021-05-05 09:54:12 +10:00
parent 42553202a3
commit 9c65e590c4
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ function connections(waku: Waku | undefined): string[] {
let strConnections = ' connections: [';
connections.forEach((connection) => {
strConnections += JSON.stringify(connection.stat);
strConnections += "; " + JSON.stringify(connection.streams);
});
strConnections += ']';
response.push(strConnections);