You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with node.connect({host: "remote_ip", port: remote_port}) we can connect to the network with one other node, if that node goes offline, then it will not connect. would it be possible to use an Array[] and connect to multiple nodes, in case the first node does not work?
The text was updated successfully, but these errors were encountered:
node.connect can be used more than once to connect to multiple nodes, you could loop through your array of nodes and connect to each of them.
The connect function returns an event emitter that will emit a "connected" event once connected to a node otherwise a "timeout" event will be emitted if the remote node is unreachable.
with
node.connect({host: "remote_ip", port: remote_port})
we can connect to the network with one other node, if that node goes offline, then it will not connect. would it be possible to use anArray[]
and connect to multiple nodes, in case the first node does not work?The text was updated successfully, but these errors were encountered: