liuyu 4 năm trước cách đây
mục cha
commit
f86fcc88f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/plugins/stomp.js

+ 1 - 1
src/plugins/stomp.js

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