562 Commits

Author SHA1 Message Date
Jesse Gibson
4cd2d434d1 Add websocket backoff/retry logic
New library handles websocket reconnection logic and queues messages
that were sent while offline.
2016-11-10 10:11:01 -07:00
Jesse Gibson
e36e78f532 Isolate websocket logic
WebSocket logic has it's own folder now, `wsp`.
2016-11-10 10:09:18 -07:00
Jesse Gibson
adbea08120 Add basic websocket logic
Servers will now try to initiate a connection using websockets if the
`peers` option is set. Currently, it'll either start throwing errors,
or generate a broadcasting storm. Still work to be done...
This marks a milestone of getting the servers to connect to each
other. Now to have those messages make sense. Committing so I
have an easy rollback point.
2016-10-26 14:52:28 -06:00
Mark Nadal
e509912fa2 Merge pull request #248 from PsychoLlama/0.5
Fix /gun.js route
2016-10-18 14:32:56 -06:00
Jesse Gibson
6f8c99ccf1 Fix /gun.js route
The `wsp.server` logic was never making it to the /gun.js route. If the
browser is just sending a GET request for a the js file, it won't set
the upgrade property, and the server logic wouldn't let the request pass
if it didn't have that header.
I've simply moved the check below the file serving logic.
2016-10-18 13:54:59 -06:00
Mark Nadal
0aef927eec Update gun.js 2016-10-18 12:11:02 -07:00
Mark Nadal
23f126f219 Update gun.js 2016-10-18 12:05:14 -07:00
Mark Nadal
de216349be Merge pull request #245 from noderaider/0.5
added yarn.lock to gitignore and fixed npm start
2016-10-17 23:46:32 -06:00
Cole Chamberlain
1c25b51e41 added yarn.lock to gitignore and fixed npm start 2016-10-17 15:11:17 -07:00
Mark Nadal
58753e0f9e Update gun.js 2016-10-12 01:35:20 -07:00
Mark Nadal
9355a36a54 Update gun.js 2016-10-12 01:00:42 -07:00
Mark Nadal
d1c4df7688 Merge pull request #238 from d3x0r/patch-4
Update gun.js
2016-10-10 21:15:00 -06:00
d3x0r
c5c2d190e5 Update gun.js
Fix localStorage to pull and cache options from parent.
2016-10-10 20:11:56 -07:00
Mark Nadal
2a6858388e Merge pull request #233 from d3x0r/patch-3
Update package.json
2016-10-10 12:54:04 -06:00
Mark Nadal
df4d87eb3e Update gun.js 2016-10-10 02:03:25 -07:00
d3x0r
98f5b7ecd1 Update package.json 2016-10-09 13:13:20 -07:00
Mark Nadal
bf4097beeb temp fix for @d3x0r 2016-10-06 00:28:26 -07:00
Mark Nadal
68499355af Merge pull request #225 from allain/patch-1
require('gun') doesn't work but requrie('..') does
2016-10-05 16:09:13 -06:00
Mark Nadal
8939bd1ed6 Merge pull request #224 from allain/0.5
\r\n incorrectly getting replaced with \r in unbuild.js
2016-10-05 16:07:51 -06:00
Allain Lalonde
a694da81f9 require('gun') doesn't work but requrie('..') does 2016-10-05 16:14:52 -04:00
Allain Lalonde
81a48ff272 \r\n was incorrectly getting replaced with \r, which mangled things 2016-10-05 15:43:37 -04:00
Mark Nadal
18dc2f2db6 Merge pull request #223 from d3x0r/patch-2
hoise function implicit()
2016-10-04 23:02:45 -06:00
d3x0r
5774fa37c6 hoise function implicit() 2016-10-04 21:59:20 -07:00
Mark Nadal
f0a06de464 fix var node for @d3x0r 2016-10-04 19:10:01 -07:00
Mark Nadal
873afd8325 fix @d3x0r 's double close 2016-10-02 09:58:13 -07:00
Mark Nadal
7320c18248 Merge pull request #222 from d3x0r/patch-1
Check request for 'upgrade' being set
2016-09-30 19:21:05 -06:00
Mark Nadal
066340ba71 being lazy, using the easy approach for @devel-pa 2016-09-30 18:07:42 -07:00
d3x0r
a472f33e66 Check request for 'upgrade' being set
along with the path check, should check that the request is an upgrade before assuming to do anything with it really.
2016-09-30 16:54:06 -07:00
Mark Nadal
b2f78bc128 Merge pull request #220 from datuxer/0.5
Unbuilding structure.
2016-09-30 16:26:08 -06:00
devel-pa
9098380a90 Put out of the way require polyfill. 2016-09-30 21:24:01 +02:00
devel-pa
b8025b207f Unbuilding structure. 2016-09-30 21:19:18 +02:00
Mark Nadal
436376358b wsp should use 'in' if not found. 2016-09-27 14:51:31 -07:00
Mark Nadal
21257424a5 localStorage should recover from a get response 2016-09-27 12:23:59 -07:00
Mark Nadal
f748ef0308 add set back in for @stefdv 2016-09-27 11:40:20 -07:00
Mark Nadal
05bb232d4d put now accepts refs again 2016-09-27 11:32:36 -07:00
Mark Nadal
347ac0ff37 Update wsp.js 2016-09-26 22:50:35 -07:00
Mark Nadal
a0a5be519a Update gun.js 2016-09-26 22:43:50 -07:00
Mark Nadal
00d8fe331e use intended message ID 2016-09-25 18:12:26 -07:00
Mark Nadal
11a390e7b2 toJSON 2016-09-25 18:10:58 -07:00
Mark Nadal
2ce6c80521 fix crashing bug found by @d3x0r 2016-09-25 18:09:28 -07:00
Mark Nadal
4d13585be8 check against undef not falsy 2016-09-25 15:40:32 -07:00
Mark Nadal
cdbf06e9c4 pretty print data.json for @d3x0r 2016-09-25 13:41:14 -07:00
Mark Nadal
fa3d3eeff4 0.5 BETA TESTING 2016-09-25 13:06:29 -07:00
Mark Nadal
acc085a8ed currently VERY broken 2016-09-17 14:50:36 -07:00
Mark Nadal
d62b3f7ab0 so much working!!! 2016-09-08 18:43:00 -07:00
Mark Nadal
3ec5fe5484 190+ tests passing, now handle map path 2016-09-01 13:33:35 -07:00
Mark Nadal
dc157d05c1 finally got ack working 2016-08-13 16:18:00 -07:00
Mark Nadal
9cb2c9e313 before doing more scary things? 2016-08-05 18:58:30 -07:00
Mark Nadal
97449e9f28 into the meat of put 2016-08-03 16:58:15 -07:00
Mark Nadal
a609584eda 60+ tests passing 2016-07-26 22:46:15 -07:00