mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Merge branch 'master' of github.com:amark/gun
This commit is contained in:
commit
550b0633b0
10
README.md
10
README.md
@ -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/)
|
||||
|
||||
|
@ -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 || {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user