56 Commits

Author SHA1 Message Date
David Glasser
5e622215ba Change all publicly documented APIs to use camelCase.
For now, the old names still work as well.

This includes:
  - Meteor.isServer/isClient
  - this.isSimulation in methods
  - Context.onInvalidate
  - Meteor.status().retryCount/retryTime

Remove old backwards-compatibility "Sky" alias for "Meteor".

Update all examples in the docs to use camelCase.

Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
Nick Martin
26136a22a4 Fallback to jsonp-polling in IE when going cross scheme.
https://github.com/sockjs/sockjs-client/issues/79
2012-07-11 21:19:15 -07:00
Nick Martin
6049771204 Also clear heartbeat timer when we get data messages.
This fixes an issue with spurious connection closing.
2012-06-13 20:12:08 -07:00
Nick Martin
a1a6414c1a Add heartbeat timer so we notice when the server silently goes away. 2012-05-22 21:32:15 -07:00
Avital Oliver
4f3d8151b6 Add /websocket endpoint. 2012-05-09 23:55:02 -07:00
Avital Oliver
944e2437f6 Refactor the conversion to a sockjs url
Instead of having it be in LivedataConnection, put it in
Stream. This means that LivedataConnection doesn't need to
know anything about sockjs (though for now it does since
we still support the old deprecated API)
2012-05-03 19:42:38 -07:00
Avital Oliver
fd01cf84e0 Hide sockjs URL endpoint from user of Meteor.connect
OLD: Meteor.connect("http://subdomain.meteor.com/sockjs")
NEW: Meteor.connect("subdomain.meteor.com")

While at it, updated any references I could find to explicit sockjs URLs
2012-05-02 21:17:33 -07:00
Nick Martin
54f6f01e48 Update sockjs client to 0.3.1. 2012-04-25 17:20:43 -07:00
Nick Martin
f00a8a21fb Allow native websockets connections to sockjs.
This interface will probably change, but enabling this allows people to get started on non-browser DDP clients now.
2012-04-23 19:49:53 -07:00
Nick Martin
3f3e014071 Allow setting SERVER_ID via environment variable. 2012-04-13 17:27:45 -07:00
Nick Martin
d56725dd6a Move stub_stream to test helpers. 2012-04-03 22:37:12 -07:00
Nick Martin
550fabf052 Stub stream based tests for livedata connection. 2012-04-03 22:37:12 -07:00
Nick Martin
df8460130f Only use polling, not streaming or websockets.
This improves cross-browser compatibility, and shouldn't hurt too much. We may want to revisit this later.
2012-03-07 18:18:30 -08:00
Geoff Schmidt
76c57526f7 rework public API for defining tests 2012-03-02 05:22:40 -08:00
Geoff Schmidt
cab5afbb91 move test reporting functions out of globals 2012-03-02 03:57:30 -08:00
Geoff Schmidt
86951aa743 block migration until livedata methods finish
-- This way we don't have to worry about losing the lambdas that go with outstanding method invocations.

Also, don't listen to reload signals except from App (not from third-party DDP servers.)
2012-03-01 19:40:44 -08:00
Geoff Schmidt
ddfbf236ce allow packages to block migration until they're ready 2012-03-01 17:25:36 -08:00
Geoff Schmidt
8fc57d02fb helper for manually testing session reconnection 2012-03-01 03:28:18 -08:00
Geoff Schmidt
58a2d65126 Provide package 'meteor' to create the Meteor global
Fold old package 'core' into it
2012-02-23 02:21:10 -08:00
Geoff Schmidt
e0722bedf8 basic livedata method invocation tests 2012-02-21 01:40:15 -08:00
Nick Martin
5cd46e7f3e Super basic test for stream package. Not a lot of coverage, but enough to catch a recent regression in stream_client.js. 2012-02-16 15:13:00 -08:00
Nick Martin
573fbfff8e Rename self.status to self.current_status to avoid collision with status() that broke Meteor.status(). 2012-02-14 18:00:50 -08:00
Nick Martin
42a29bd177 Remove JSON from sockjs. We already are shipping a JSON, we don't need another. 2012-02-14 18:00:50 -08:00
Nick Martin
0fed828024 Update sockjs to just released 0.2.1. 2012-02-14 18:00:50 -08:00
Nick Martin
b1d4bc85e4 Fixup URL to connect to. 2012-02-14 18:00:50 -08:00
Nick Martin
ff25333349 Remove sockjs listeners correctly. 2012-02-14 18:00:50 -08:00
Nick Martin
a0156989bb Cleanup socket.io artifact. 2012-02-14 18:00:50 -08:00
Nick Martin
91f479e9d4 First pass at using new sockjs API. Not at all complete, but passes data back and forth successfully. 2012-02-14 18:00:49 -08:00
Nick Martin
02278b3b5e Add sockjs client library to stream package. 2012-02-14 18:00:49 -08:00
Geoff Schmidt
5f27e47c9f Convert livedata and stream from closures to objects 2012-02-09 20:02:23 -08:00
Nick Martin
7a88230e48 Somehow 'reload' wasn't included in stream's package.js. Not sure how this worked for me previously. 2012-02-07 14:51:35 -08:00
Nick Martin
03d06a33b1 Tweak retry timeout to try to reconnect quickly the first few times. This makes automatic reloads much faster. 2012-02-06 23:15:31 -08:00
Nick Martin
68511f2dc4 Wire up reload package. Doesn't actually do anything yet, but all the pieces should be in place now. 2012-02-06 23:15:31 -08:00
Nick Martin
cf4cab282e Add uuid to each server, make client save that off and reload if it changes. 2012-02-06 23:15:31 -08:00
Nick Martin
b367f4a6e1 Add logging package and make call sites use it. This should clear up any lingering IE console issues. 2012-01-27 23:19:48 -08:00
Geoff Schmidt
d1d5604976 Refactor bundler; new package API 2012-01-27 20:02:26 -08:00
Nick Martin
d56773277b Remove 'startup' state from connection state machine. 2012-01-27 20:02:25 -08:00
Geoff Schmidt
e5eb42e55c Refactor package API/bundler 2012-01-27 20:02:24 -08:00
Nick Martin
459dac9cac Merge branch 'master' into meteor
conflicts hand resolved. deftemplate and liveui reverted to master, will re-do later.

Conflicts:
	admin/generate-dev-bundle.sh
	admin/install-s3.sh
	admin/manifest.json
	app/meteor/deploy.js
	app/meteor/meteor.js
	examples/leaderboard/leaderboard.js
	examples/unfinished/azrael/client/azrael.js
	examples/unfinished/azrael/model.js
	packages/liveui/liveui.js
	packages/templating/deftemplate.js
	packages/templating/html_scanner.js
	tests/minimongo/test.html
2012-01-18 16:14:54 -08:00
Nick Martin
06a14e6ad9 Even more robustness to socket.io weirdness. This one should be fixed in socket.io master, but the extra safety belt doesn't hurt. 2012-01-13 15:20:12 -08:00
Nick Martin
c5b5880cea Be even more defensive to socket.io weirdness. 2012-01-09 22:46:31 -08:00
Nick Martin
a9f58deb93 Cleanup socket a little more aggressively. Hopefully fixes hanging connection bug. 2012-01-09 14:42:42 -08:00
Nick Martin
3faff2de78 perl -pi -e 's/Sky/Meteor/g' **/* 2012-01-04 20:52:46 -08:00
Nick Martin
05794f5643 perl -pi -e 's/skybreak/meteor/g' **/* 2012-01-04 18:32:23 -08:00
Nick Martin
23cd5b6912 perl -pi -e 's/Skybreak/Meteor/g' **/* 2012-01-04 18:30:25 -08:00
Nick Martin
d38efe6345 Rework reactive logic for new Sky.deps API. 2011-12-19 16:53:14 -08:00
Nick Martin
60abb2090c Comment on constants per matt. 2011-12-15 23:59:57 -08:00
Nick Martin
cc60375468 Re-subscribe and reset the database when we reconnect. 2011-12-15 20:36:41 -08:00
Nick Martin
1801b33cf7 retransmit unacked messages when we reconnect again. 2011-12-15 16:48:03 -08:00
Nick Martin
1e956fcfe7 Hook up reconnect function to actually do something. 2011-12-14 21:41:13 -08:00