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