322 Commits

Author SHA1 Message Date
d3x0r
dfda990ec2 'peer' should be 'this' 2017-03-22 17:23:05 -07:00
d3x0r
823950d87d Add get options cat.wsp
gets options passed to Gun( { wsc: { ...} } ) and puts wsc options in wsp which is used to contain a working state 'count' right now.  In addition to 'count' it will now contain 'wsc' which are the options passed to the gun instance.  This is cached on the 'cat' so the lookup should only be one time.
Since 'cat' becomes 'peer' later, peer.wsp.wsc are the new options.  These will always exist for the WebSocket call.  They default to 'null' and or Empty so no change will be expected without additional options.
2017-03-22 17:10:22 -07:00
Zane Hitchcox
ef0b1aa212 remove unnecessary comment 2017-03-14 22:27:54 -04:00
Zane Hitchcox
2ed536baf6 remove back ||
That doesn't do anything
2017-03-14 20:09:18 -04:00
Mark Nadal
029e11e907 bump set 2017-03-13 17:37:41 -07:00
Mark Nadal
33a0cf5629 load testing!!! 2017-03-11 07:09:14 -08:00
Mark Nadal
ec3288e583 load testing! 2017-03-11 07:03:55 -08:00
Mark Nadal
a700afba73 fix #320 for @leemuro 2017-02-20 17:29:57 -08:00
Mark Nadal
8aa649ef4a s3 fix & begin adding load tests 2017-02-20 15:27:02 -08:00
Mark Nadal
3f0c2c6267 fix S3 2017-02-16 23:38:34 -08:00
Mark Nadal
56cfe2e2c6 v0.6.0 baby! 2017-02-14 16:52:02 -08:00
Mark Nadal
6dd1b1b536 v0.6.0 baby! 2017-02-14 16:46:24 -08:00
Zane Hitchcox
3e77509084 ensure replaced 'http' is at beginning of url or not replaced 2017-02-14 16:14:21 -05:00
Mark Nadal
c375c7c347 fix recursive relate 2017-02-13 12:50:26 -08:00
Mark Nadal
3c1ff61e37 fix local not founds unsubscribing things. 2017-02-11 04:11:26 -08:00
Mark Nadal
e65c6cee57 fix num_is & repeat maps 2017-02-06 10:18:46 -08:00
Mark Nadal
615a0f7fff patch map, add src 2017-02-04 00:20:17 -08:00
Mark Nadal
34c12a537d correct input layout 2017-02-03 16:22:29 -08:00
Mark Nadal
30bbcc1de2 fixed map and @stefdv stuff 2017-02-03 16:17:31 -08:00
Mark Nadal
ebabc80714 looking good! one last node 2017-02-03 16:08:14 -08:00
Mark Nadal
00552bd89a before impulsive behavior 2017-02-02 01:56:00 -08:00
Mark Nadal
b4b6743eaa fix implicit 2017-01-29 03:27:46 -08:00
Mark Nadal
122890b42d fix not 2017-01-29 00:04:37 -08:00
Mark Nadal
b03f6e0de8 put as merge 2017-01-27 22:12:50 -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
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
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
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
02381a123d so much 2016-12-15 16:17:50 -08:00
Jesse Gibson
a566572a2d Shallow copy constructor options
Previously constructor options were deeply copied, which caused
issues with 3rd party plugins when they pass "class" instances as
options (since instances were copied into POJOs, breaking the prototype
chain). Now it's shallow copied. Special treatment is still given for
the `peers` property.
2016-12-15 15:35:11 -07:00
Jesse Gibson
ba673f73f8 Attempt reconnect on disconnect
Previously, the client websocket layer would only attempt a reconnection
if there were pending messages in the queue. Now it will always attempt
a reconnection, solving most of issue #259 (although not completely, as
reconnects are susceptible to race conditions).
2016-12-13 13:37:43 -07:00
Jesse Gibson
304265e193 Pass backoff options from constructor
The Client constructor supports backoff configuration. This commit
exposes it to the end developer via the `peers` options object, in the
`backoff` property.
Example:

Gun({
  peers: {
    'url.com/gun': {
      backoff: { max: 1000, factor: 0.2 }
    }
  }
})
2016-12-12 16:24:51 -07:00
Jesse Gibson
30fe844cab Check JSON support just once
Two separate modules (localStorage & websockets) ensured JSON was
globally defined. Since only one is needed to alert the user, the
other has been removed.
2016-12-12 16:10:39 -07:00