Skip to content

Commit

Permalink
Update gun peers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyo committed Aug 1, 2023
1 parent 5c6bf52 commit 11d05ec
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions hooks/use-gun.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
'use strict'
"use strict";

import '../lib/gun.js';
import '../lib/sea.js';
import '../lib/webrtc.js';
import "../lib/gun.js";
import "../lib/sea.js";
import "../lib/webrtc.js";

let gun;

const config = {
peers: [
'http://localhost:8765/gun',
'https://gunrelayeurope.herokuapp.com/gun',
"http://localhost:8765/gun",
"https://gundb.fly.dev/gun", // Self hosted peer
"https://gun-manhattan.herokuapp.com/gun",
],
};

Expand All @@ -24,5 +25,5 @@ function useGun() {
}

export function useMessages(key) {
return useGun().get('messages-' + key);
return useGun().get("messages-" + key);
}

0 comments on commit 11d05ec

Please sign in to comment.