Skip to content

Gun-Vue docs v0.21.4Docs


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()

Defined in

src/gun/useRelay.js:92

MIT