liuyu 5 년 전
부모
커밋
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. 注入组件