876 Commits

Author SHA1 Message Date
Mark Nadal
b03f6e0de8 put as merge 2017-01-27 22:12:50 -08:00
Mark Nadal
11566b00fc Update README.md 2017-01-27 12:45:27 -08:00
Mark Nadal
90ce4af254 Update README.md 2017-01-27 12:25:00 -08:00
Mark Nadal
6927b85f52 Update README.md 2017-01-27 11:49:02 -08:00
Mark Nadal
5617d44f75 Update README.md 2017-01-27 11:48:08 -08:00
Mark Nadal
f247afae81 Update README.md 2017-01-27 11:46:30 -08:00
Mark Nadal
40c991426b launching 0.5! 2017-01-27 07:40:24 -08:00
Mark Nadal
583cb06f37 temporarily (because of jesse) drop Node v0.1 and below 2017-01-27 07:16:51 -08:00
Mark Nadal
d0bbcef285 0.5! 2017-01-27 06:27:04 -08:00
Mark Nadal
4a2a845458 launching! 2017-01-27 05:23:49 -08:00
Mark Nadal
77d71a0c94 pushing! 2017-01-27 04:58:16 -08:00
Mark Nadal
37ac5e28e4 we should push 2017-01-27 03:34:16 -08:00
Mark Nadal
377fa7900f clean up 2017-01-21 22:06:56 -08:00
Mark Nadal
9002593435 looking good 2017-01-21 18:13:34 -08:00
Mark Nadal
e141a4c240 Update gun.js 2017-01-20 20:30:19 -08:00
Mark Nadal
21e9f30890 stupid mocha is crashing on 0.6 so temporarily drop 0.6 2017-01-19 13:42:11 -08:00
Mark Nadal
4a41ec4075 Sean Matheson is awesome! Thanks for supporting the project, @ctrlplusb ! 2017-01-19 13:28:47 -08:00
Mark Nadal
baf99d7e72 Update client.js 2017-01-11 10:47:50 -08:00
Mark Nadal
8c426553d7 Update gun.js 2017-01-11 10:38:10 -08:00
Mark Nadal
bd0e6a615f Update gun.js 2017-01-03 09:40:47 -08:00
Mark Nadal
de9c6ce1ae Merge branch '0.5' of https://github.com/amark/gun into 0.5 2016-12-30 19:23:20 -08:00
Mark Nadal
7291263426 repull and test 2016-12-30 19:23:16 -08:00
Mark Nadal
c6a75748d2 Merge pull request #300 from d3x0r/patch-7
Add example with external websocket provider
2016-12-27 00:14:48 -07: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
Mark Nadal
d5cf9938c1 Update file.js 2016-12-26 22:48:59 -08:00
Mark Nadal
2e826ca9d8 fix reads 2016-12-26 22:46:27 -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
Mark Nadal
096e224af5 Merge pull request #298 from d3x0r/patch-6
#297 passing options to websocket
2016-12-26 22:50:28 -07: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
Mark Nadal
db74549326 warning: file.js/data.json is for local development testing only. 2016-12-26 21:12:21 -08:00
d3x0r
a4425bda24 remove redundant option fetch
since options have to be fetched higher anyway... 
Or rather - this options is outside of knowing gun options
2016-12-23 00:43:05 -08:00
d3x0r
266b18109c Missed a change to get the options....
Somehow my other options test didn't work... had to add something like this.

Now I feel this is such a huge hack
2016-12-23 00:35:11 -08:00
Mark Nadal
eddbbf6247 Merge pull request #297 from d3x0r/patch-5
pass gun's options to websocket
2016-12-22 23:01:12 -07:00
d3x0r
751ac3b230 pass wsc options to client gun create ( wsc:protocols especially, since that translates to the optional parameter in the standard client websocket constructor ) 2016-12-21 15:03:10 -08:00
d3x0r
8dac820902 fix default assignment 2016-12-21 12:18:39 -08:00
d3x0r
8e6d827216 fix indentation 2016-12-21 12:17:56 -08:00
d3x0r
9c41182004 Fix quotes 2016-12-21 12:17:31 -08:00
d3x0r
320183fa54 Set default options more robustly 2016-12-21 12:17:01 -08:00
d3x0r
f28b62fd4c Setup default option
if wsc doesn't previosuly exist, create a empty option block.
add option 'protocols' for wsc that can specify the optional protocols before the options.
Options will also only apply to node client websockets; (package 'ws'), browser websockets only take 1 with 1 optional parameter (being the list of protocols to connect with; so I added that optional param for compatibility.
2016-12-21 12:09:10 -08:00
d3x0r
f548db293b pull opions from 'wsc' in gun options
'ws' options are used by server
'wsc' options to be used by websock client... ?
2016-12-21 11:59:28 -08:00
d3x0r
e8f840c548 pass gun's options to websocket
I recently had to set options given to the websocket client especially 

rejectUnauthorized {Boolean} Verify or not the server certificate.

for connecting to wss which are using self signed certs...
could also pass things like 'protocol' to differentiate a Gun websocket connection from some other websocket connection....

I don't know if maybe websock options should be a object in options instead ?  To avoid namespace collision?
2016-12-21 11:21:13 -08:00
Mark Nadal
631eb6d023 mostly working solution to orphan-child-unsubscribe-from-table problem, although causality questions, going to try another idea. 2016-12-19 23:58:30 -08:00
Mark Nadal
2e7b87c3b9 Update gun.js 2016-12-19 20:57:07 -08:00
Mark Nadal
44fa4f3252 Update gun.js 2016-12-19 20:30:42 -08:00
Mark Nadal
5ade1b6773 idea for solution 2016-12-17 23:54:32 -08:00
Mark Nadal
bdcea8c0d1 Update gun.js 2016-12-17 21:56:15 -08:00
Mark Nadal
ef89785525 Update gun.js 2016-12-17 14:01:58 -08:00
Mark Nadal
53d5417d4a Update gun.js 2016-12-17 12:25:36 -08:00
Mark Nadal
ca30236be5 Merge pull request #296 from PsychoLlama/0.5
0.5: fix common travis-ci build failures
2016-12-16 16:24:35 -07:00