mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-22 11:40:09 +00:00
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…
x
Reference in New Issue
Block a user