liuyu 4 năm trước cách đây
mục cha
commit
fb58691347
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

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