mirror of
https://github.com/amark/gun.git
synced 2025-06-24 15:02:33 +00:00
Update http-external-ws.js
This commit is contained in:
parent
f9a851c73a
commit
63af616033
@ -35,7 +35,7 @@ wss.on('connection',acceptConnection )
|
||||
|
||||
var gunPeers = []; // used as a list of connected clients.
|
||||
|
||||
gun.on('out', function(msg){
|
||||
Gun.on('out', function(msg){
|
||||
msg = JSON.stringify({headers:{},body:msg});
|
||||
gunPeers.forEach( function(peer){ peer.send( msg ) })
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user