Closed Extarys closed 2 years ago
If you want to use your relay, you need to set it like this:
import { useRelay } from '@gun-vue/composables'
const relay = useRelay()
relay.setPeer('http://0.0.0.0')
This save the url to the localstorage and reload the page, so you'll have all gun instances in sync with the new relay.
See the documentation here:
And the
useRelay
function here.When I try to get the server's status, it always gives me the demo server:
{ "peer": "https://etogun.glitch.me/gun", "host": "etogun.glitch.me", "status": "offline", "started": 0, "pulse": 0, "lag": 0, "diff": 0, "age": "0ms", "delay": 1646331513100, "blink": false }
I'm still figuring everything out, with Nuxt 3 I finally was able to get something with your suggestion thanks!