Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-05-20 11:44:40 +0300
committerJoas Schilling <coding@schilljs.com>2021-06-14 12:33:12 +0300
commit436b636d61f135d25b84a88d72b15aa301bd97f5 (patch)
treec4adf82c5e67b7ffcde7f4169cee345190ff21b0 /docs
parent3ee0ac058086aae6c811e9078763eeca13ac8f4e (diff)
Define closeConnections() before starting siege
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/Talkbuchet.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/Talkbuchet.js b/docs/Talkbuchet.js
index 18323cbd3..93887e3e3 100644
--- a/docs/Talkbuchet.js
+++ b/docs/Talkbuchet.js
@@ -225,7 +225,7 @@ class Signaling extends EventTarget {
async getSessionId() {
return this.sessionId
}
-
+
send(message) {
this.socket.send(JSON.stringify(message))
}
@@ -559,8 +559,6 @@ async function initSubscribers() {
listenToSubscriberConnectionChanges()
}
-await initSubscribers()
-
const closeConnections = function() {
subscribers.forEach(subscriber => {
subscriber.peerConnection.close()
@@ -574,3 +572,7 @@ const closeConnections = function() {
track.stop()
})
}
+
+console.info('Preparing to siege')
+
+await initSubscribers()