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