liuyu 4 年 前
コミット
f86fcc88f6
1 ファイル変更1 行追加1 行削除
  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. 注入组件