From aa6ba2f87d2a2e5fca581931b59df289e07c51aa Mon Sep 17 00:00:00 2001 From: Akulich Paul Date: Fri, 18 Oct 2019 23:13:46 +0300 Subject: [PATCH 1/2] added query string wrtcstar=true for queries to a signal server query: { wrtcstar: true, }, --- src/listener.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/listener.js b/src/listener.js index 0db5be74..c59eed9b 100644 --- a/src/listener.js +++ b/src/listener.js @@ -14,7 +14,10 @@ const { cleanUrlSIO } = require('./utils') const sioOptions = { transports: ['websocket'], - 'force new connection': true + 'force new connection': true, + query: { + wrtcstar: true, + }, } module.exports = ({ handler, upgrader }, WebRTCStar, options = {}) => { From 68bd8a24d6af3552119d9c2534bcce34132cccc7 Mon Sep 17 00:00:00 2001 From: Akulich Paul Date: Fri, 18 Oct 2019 23:15:15 +0300 Subject: [PATCH 2/2] also add wrtcstar=true to a querystring when connecting to a signal server also add wrtcstar=true to a querystring --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index fae393bd..42777c8d 100644 --- a/src/index.js +++ b/src/index.js @@ -42,7 +42,10 @@ class WebRTCStar { this.sioOptions = { transports: ['websocket'], - 'force new connection': true + 'force new connection': true, + query: { + wrtcstar: true, + }, } if (options.wrtc) {