-
andrey8ezkaroHi, everybody, should I use connectionManager to connect to wallet rpc rather than create rpc connection with my credentials?
-
rbrunnerWhat is "connectionManager"?
-
moneromoooI'm sure there's a joke somewhere with connectionManager and the lightning fast dc after asking, but I can't find it.
-
moneromoooandrey8ezkaro: < rbrunner> What is "connectionManager"?
-
moneromooogrep doesn't find it in the monero tree (I thought it might have been a GUI layer thing).
-
andrey8ezkaroI'm using monero-ts library
-
andrey8ezkaro
-
moneromoooAh, so you'll likely need to find who wrote this, and find them.
-
moneromoooOr look for docs in that repo.
-
andrey8ezkaroYeah, there are examples but with low explanation of what to use
-
m-relay<woodser:monero.social> hey there, that's my library. you can use the connection manager to manage your wallet's connection to various monerod endpoints, so if one becomes disconnected or slow, it'll automatically switch your wallet over. it's not necessary of course, you can simply create your wallet with one connection
-
m-relay<woodser:monero.social> andrey8ezkaro
-
andrey8ezkarom-relay, thank you for explenation. How long the connection is keeping alive?
-
andrey8ezkaroIn my app the whole interaction will be with one wallet, so I want it to be permanent(as long as app is running ofc) Can I relay on .connectToWalletRpc method having thi behavior?
-
andrey8ezkaroand one daemon
-
m-relay<woodser:monero.social> yes you can have your wallet connected to one monerod and it will remain connected as long as the monerod is available. if however you expect the monerod could go offline (e.g. a public node) and you want the wallet to switch to different monerod then, that’s what the connection manager is for