Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / Relays / useRelays
Function: useRelays()
useRelays():
object
Gets the list of actual gun relays and tool to update the list
Returns
object
errors
errors:
object
loadRelays()
loadRelays: () =>
Promise
<object
>
Returns
Promise
<object
>
relays
relays:
object
Example
ts
import { useRelays } from '@gun-vue/composables'
const { relays, errors, loadRelays } = useRelays()