liuyu hace 4 años
padre
commit
26270c76c5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/plugins/stomp.js

+ 1 - 1
src/plugins/stomp.js

@@ -16,7 +16,7 @@ const Plugin = {
       };
     }
     assert(_.isString(options.brokerURL));
-    if (!options.brokerURL.startsWith('ws://')) {
+    if (!options.brokerURL.startsWith('wss://')) {
       options.brokerURL = `wss://${location.host}${options.brokerURL}`;
     }