fix(@mbark/embarkjs): enable using wss in embarkjs and the Dapp

This commit is contained in:
Jonathan Rainville 2019-08-20 16:13:24 -04:00
parent ff97aa5b3e
commit d2fc210706
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ Blockchain.doConnect = function(connectionList, opts, doneCb) {
if (connectionString === '$WEB3') {
connectWeb3(next);
} else if (connectionString.indexOf('ws://') >= 0) {
} else if ((/^wss?:\/\//).test(connectionString)) {
connectWebsocket(connectionString, next);
} else {
connectHttp(connectionString, next);