mirror of
https://github.com/amark/gun.git
synced 2025-06-06 14:16:44 +00:00
add default path for gun
This commit is contained in:
parent
ab467589c2
commit
d46db34d45
@ -13,6 +13,7 @@ Gun.on('opt', function mount(at){
|
||||
var cat = (at.gun.back(-1)._);
|
||||
|
||||
opt.server = opt.server || at.opt.web;
|
||||
opt.path = opt.path || at.opt.path || '/gun';
|
||||
|
||||
opt.web = new WebSocket.Server(opt);
|
||||
var peers = cat.opt.peers;
|
||||
|
@ -15,6 +15,7 @@ Gun.on('opt', function (at) {
|
||||
var gun = at.gun, opt = at.opt;
|
||||
gun.__ = at.root._;
|
||||
gun.__.opt.ws = opt.ws = gun.__.opt.ws || opt.ws || {};
|
||||
gun.__.opt.ws.path = gun.__.opt.ws.path || '/gun';
|
||||
|
||||
if(gun.__.opt.web){
|
||||
setTimeout(function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user