Skip to content

Commit d2fc210

Browse files
committed
fix(@mbark/embarkjs): enable using wss in embarkjs and the Dapp
1 parent ff97aa5 commit d2fc210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/embarkjs/src/blockchain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Blockchain.doConnect = function(connectionList, opts, doneCb) {
172172

173173
if (connectionString === '$WEB3') {
174174
connectWeb3(next);
175-
} else if (connectionString.indexOf('ws://') >= 0) {
175+
} else if ((/^wss?:\/\//).test(connectionString)) {
176176
connectWebsocket(connectionString, next);
177177
} else {
178178
connectHttp(connectionString, next);

0 commit comments

Comments
 (0)