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