Web Wallet - Add New Websocket API

Started by Black Arrow, November 22, 2015, 09:45:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jakub

#8
I'm running a witness node locally with rpc-tls-endpoint enabled:
witness_node --rpc-tls-endpoint 127.0.0.1:8089

And I've set the API connection in the GUI to this:
wss://127.0.0.1:8089

But still I get this error in the GUI:
WebSocket connection to 'wss://127.0.0.1:8089/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Anyone knows what I've done wrong?

EDIT: This issue is solved here:
https://bitsharestalk.org/index.php/topic,8390.msg273655.html#msg273655

It turns out that your locally run witness node can work with a GUI only if you use either of these:
- a light wallet GUI running locally on your machine
- a hosted GUI, provided it is not using a secure domain (i.e. only works with plain http, not https)

Thus the OpenLedger GUI cannot be connected to your locally run witness node, as it uses https.
(If you really wanted to connect it, you could do it with "a TLS certificate and a proxy server for incoming traffic that proxies the ws server of the witness node" - as svk explains it here)

Black Arrow



Black Arrow

Yes. That makes sense. Do you know if there's any chance the MAX_LATENCY setting might be increased in a future version?

xeroc

Quote from: Black Arrow on November 23, 2015, 05:39:52 AM
Thanks for response. After  several retries I eventually got a connection. I think may be the problem had to do with a slow internet connection as I have a satellite connection.
In your case I think it is more about the delay than the "speed" .. the wallet expects a certain max latency :)

Black Arrow

Thanks for response. After  several retries I eventually got a connection. I think may be the problem had to do with a slow internet connection as I have a satellite connection.

roadscape

Are you using OpenLedger, or running your own wallet?

If you're on OpenLedger, your best bet is to use the default:

wss://bitshares.openledger.info/ws

So if that's not working, I'm not sure why. I'm not seeing issues on my end..
Best bet is to reload the page and see if the problem goes away.

If you *need* to enter a new socket API just feed it the endpoint URL, for example:

ws://localhost:8090/ws (if you're running your own node)
http://cryptofresh.com  |  witness: roadscape

Black Arrow

I'm trying to migrate my bitshares 1.0 wallet to bitshares 2.0. When I go to the web wallet, it says I am not connected. There is a plus sign  next to wss://bitshares/openledger.info/ws. If I click on it, I get a message that says: Add new websocket API.  Are there any instructions that explain how to do this?