summaryrefslogtreecommitdiff
path: root/share/web_surfaces/shared/channel.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/web_surfaces/shared/channel.js')
-rw-r--r--share/web_surfaces/shared/channel.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/web_surfaces/shared/channel.js b/share/web_surfaces/shared/channel.js
index 4bb3c10ade..5173cf2c99 100644
--- a/share/web_surfaces/shared/channel.js
+++ b/share/web_surfaces/shared/channel.js
@@ -18,6 +18,10 @@
const JSON_INF = 1.0e+128;
+export function nodeAddressHash(node, addr) {
+ return [node].concat(addr).join('_');
+}
+
export class MessageChannel {
constructor (host) {
@@ -95,7 +99,7 @@ export class Message {
}
get hash () {
- return [this.node].concat(this.addr).join('_');
+ return nodeAddressHash(this.node, this.addr);
}
toString () {