Jump to content

Stuck on Validator Websockets


GLT

Recommended Posts

Hi - Im running a validator on GCE and am struggling to get the websockets working. Please can I ask for confirmation on the required settings are for rippled.cfg? Mine is:

[server]
port_rpc_admin_local
port_peer
port_ws_admin_local
port_ws_public
ssl_key = /etc/nginx/ssl/holosha.key
ssl_cert = /etc/nginx/ssl/holosha.crt
[port_rpc_admin_local]
port = 5005
ip = 127.0.0.1
admin = 127.0.0.1
protocol = http
[port_peer]
port = 51235
ip = 0.0.0.0
protocol = peer
[port_ws_admin_local]
port = 6006
ip = 127.0.0.1
admin = 127.0.0.1
protocol = ws
[port_ws_public]
port = 5006
ip = 0.0.0.0
protocol = wss

The code which works is as follows(obv):

new RippleClient('wss://s1.ripple.com').then((RippleServerConnection) => {
      this.connection = RippleServerConnection
      this.getBalance()
    }).catch((error) => {

but I want to use:

new RippleClient('wss://holosha.com').then((RippleServerConnection) => {
      this.connection = RippleServerConnection
      this.getBalance()
    }).catch((error) => {

I've even tried this, which didnt work, so not sure where to go from here:

new RippleClient('wss://35.189.21.167:5006').then((RippleServerConnection) => {
      this.connection = RippleServerConnection
      this.getBalance()
    }).catch((error) => {

Any pointers here please fellas? Thanks so much for any help! Even a pointer as to deeper logs would be super... cheers!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...