Merge branch 'master' of github.com:amark/gun

This commit is contained in:
estebanrfp 2020-04-19 21:15:13 +02:00
commit 550b0633b0
2 changed files with 7 additions and 5 deletions

View File

@ -231,12 +231,14 @@ now --npm amark/gun
Then visit the URL in the output of the 'now --npm' step, in your browser.
### [Unebo](https://unubo.app/)
### [Unubo](https://unubo.app/)
Fork this GUN repo (Unebo only deploys from your own GitHub repo's).
Add a Node.js app, select your GUN fork, set `npm start` start as the command and deploy.
Fork this GUN repo (Unubo only deploys from your own GitHub repo's).
Add a Node.js app, select your GUN fork, set `npm start` start as the command and deploy.
Then visit the deployed app by following the 'view app' button, in your browser.
From the experience of [genderev](https://github.com/genderev), this only works if you set your country to the United States.
Visit the deployed app by following the 'view app' button, in your browser.
### [Docker](https://www.docker.com/)

View File

@ -19,7 +19,7 @@ Gun.on('opt', function mount(ctx){
ws.server = ws.server || opt.web;
ws.path = ws.path || '/gun';
ws.web = new WebSocket.Server(ws);
if (!ws.web) ws.web = new WebSocket.Server(ws);
ws.web.on('connection', function(wire){
wire.upgradeReq = wire.upgradeReq || {};