mirror of
https://github.com/logos-messaging/lab.waku.org.git
synced 2026-01-13 03:03:12 +00:00
rename to websockets
This commit is contained in:
parent
12463d5a31
commit
1fecd02071
@ -26,7 +26,7 @@ export const buildExtraData = async (node: LightNode, peerId: string): Promise<s
|
||||
return JSON.stringify(extraData);
|
||||
}
|
||||
|
||||
const hasWebsockes = peer
|
||||
const websocket = peer
|
||||
.addresses
|
||||
.map(addr => addr.multiaddr.toString())
|
||||
.some(addr => addr.includes("ws") || addr.includes("wss"));
|
||||
@ -34,7 +34,7 @@ export const buildExtraData = async (node: LightNode, peerId: string): Promise<s
|
||||
return JSON.stringify({
|
||||
...extraData,
|
||||
peerId,
|
||||
hasWebsockes,
|
||||
websocket,
|
||||
enabledProtocols: peer.protocols,
|
||||
});
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user