mirror of https://github.com/embarklabs/embark.git
fix(@mbark/embarkjs): enable using wss in embarkjs and the Dapp
This commit is contained in:
parent
ff97aa5b3e
commit
d2fc210706
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue