9 Commits

Author SHA1 Message Date
d3x0r
545f995a3e Handle batched messages.
Failure to handle batch messages causes half communcaitions failures... (the clients were using a batching protocol, while all servers were based on this example...
2017-03-27 16:55:29 -07:00
d3x0r
62eb748f93 Formatting fix. 2017-03-24 11:00:09 -07:00
d3x0r
c0e8de95c7 Update for internals change
gun.wsp doesn't exist.
move .on hook up further
add this.to.next.
(still fails to serve chat example; others work)
2017-03-24 10:56:56 -07:00
d3x0r
98b9c4fdb7 don't wrap message in 'body'
don't wrap message in 'headers','body' and don't pull 'body' from message.
2017-03-22 18:17:31 -07:00
d3x0r
9f811c9840 Fix issues because of different websock
Was still mis-matched code with websock servers... capitlized S, fixed msg.utf8body, fied lookup in 'peers' instead of gunPeers.  (it works for examples too *boggle*)
2017-03-02 16:30:25 -08:00
Mark Nadal
63af616033 Update http-external-ws.js 2016-12-26 23:13:02 -08:00
d3x0r
f9a851c73a Apply gun 'out' listener once 2016-12-26 23:10:58 -08:00
d3x0r
4a5ab4122b Update http-external-ws.js
use classic functions instead of es6
fix peers.find should be peers.findIndex for splice.
2016-12-26 22:33:46 -08:00
d3x0r
85ae140512 HTTP.js example with external in/out used
Connects server websocket by event to gun....  (would have complicated with alternative websocket interfaces and protocol handlings... but left some comments about that)
2016-12-26 21:49:42 -08:00