Skip to content

Instantly share code, notes, and snippets.

@daviddahl
Last active September 24, 2021 13:15
Show Gist options
  • Save daviddahl/f186d83cce696f2729133f7a092165f8 to your computer and use it in GitHub Desktop.
Save daviddahl/f186d83cce696f2729133f7a092165f8 to your computer and use it in GitHub Desktop.
const Gun = require('gun/gun');
const SEA = require('gun/sea');
const radix = require('gun/lib/radix');
const radisk = require('gun/lib/radisk');
const store = require('gun/lib/store');
const rindexed = require('gun/lib/rindexed');
const webrtc = require('gun/lib/webrtc');
const myGun = new Gun({
peers: ['http://localhost:8765/gun', 'https://other-host.com'],
radisk: radisk || false,
localStorage: false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment