Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / Relay / useRelay
Function: useRelay()
useRelay():
object
Peer server status monitor
Returns
object
relay
relay:
Relay
resetPeer()
resetPeer: () =>
void
Returns
void
setPeer()
setPeer: (
url
) =>void
Parameters
• url: string
Returns
void
Example
ts
import { useRelay } from '@gun-vue/composables';
const { relay, setPeer, resetPeer } = useRelay()