liuyu 4 年 前
コミット
26270c76c5
1 ファイル変更1 行追加1 行削除
  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}`;
     }