From 63af6160335898d4d358a76e62f2288d70c46ce7 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Mon, 26 Dec 2016 23:13:02 -0800 Subject: [PATCH] Update http-external-ws.js --- examples/http-external-ws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/http-external-ws.js b/examples/http-external-ws.js index c95e95d1..2e39d70e 100644 --- a/examples/http-external-ws.js +++ b/examples/http-external-ws.js @@ -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 ) }) })