Browse Source

Fix docs example on how to use the shared worker

JC Brand 2 years ago
parent
commit
3004d7bff5
2 changed files with 2 additions and 1 deletions
  1. 1 0
      dev.html
  2. 1 1
      docs/source/configuration.rst

+ 1 - 0
dev.html

@@ -42,6 +42,7 @@
         websocket_url: 'wss://conversejs.org/xmpp-websocket',
         // websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',
         whitelisted_plugins: ['converse-debug'],
+        connection_options: { worker: '/dist/shared-connection-worker.js' }
     });
 </script>
 </body>

+ 1 - 1
docs/source/configuration.rst

@@ -693,7 +693,7 @@ appear in another.
 .. code-block:: javascript
 
         converse.initialize({
-            connection_options: { 'worker': true }
+            connection_options: { worker: '/dist/shared-connection-worker.js' }
         });