on master help sign in
Use secure connection for WebSockets

Fixes #74.

commit6d20a8f74a8eaa80efbaf0babea064088af00cf9 authorFang <git@fang.io> dateTue 12 Mar 2019, 20:06 (8 years ago) parentbf5080e
2 files changed+2−2
src/Bridge.js+1−1 src/views/Network.js+1−1
src/Bridge.js+1−1
@@ -80,7 +80,7 @@ class Bridge extends React.Component {
8080
8181 // if (process.env.NODE_ENV === 'development') {
8282 //
83− // const socket = 'ws://localhost:8545'
83+ // const socket = 'wss://localhost:8545'
8484 // const provider = new Web3.providers.WebsocketProvider(socket)
8585 // const web3 = new Web3(provider)
8686 // const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.DEV)
src/views/Network.js+1−1
@@ -45,7 +45,7 @@ class Network extends React.Component {
4545 if (network === NETWORK_NAMES.LOCAL) {
4646 setNetworkType(network)
4747
48− const endpoint = 'ws://localhost:8545'
48+ const endpoint = 'wss://localhost:8545'
4949 const provider = new Web3.providers.WebsocketProvider(endpoint)
5050 const web3 = new Web3(provider)
5151 const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.DEV)