Nick Martin
d1ce91d48e
Update sockjs to 0.3.4. This removes the meteor patch from #339 , but preserves the patch to do http->https on IE.
2012-11-15 20:44:57 -08:00
Avital Oliver
3e2de505b0
Don't drop method calls on the floor shortly after connectivity loss. Fixes #339
2012-11-14 16:29:01 -08:00
Avital Oliver
54b1411b72
Improve docs around internal patches to sockjs
...
Refer to the GitHub issue discussing a bug.
2012-11-14 14:31:02 -08:00
David Glasser
a5879bad8f
Increase SockJS disconnect_delay to avoid mistakenly disconnecting users.
...
Part of issue #207 .
2012-10-12 17:30:16 -07:00
David Glasser
3cf7dce666
Privatize the "force" option to Meteor.reconnect (added on the auth branch and
...
mostly used for manual testing).
2012-10-10 16:57:39 -07:00
David Glasser
41cc24d9e7
Merge branch 'devel' into auth
...
Pulls in Meteor._ContextSet, bumps version to 0.4.2, etc.
2012-10-06 11:10:56 -07:00
David Glasser
20e29d2851
Make everything in deps-utils private for now.
2012-10-05 15:26:22 -07:00
David Glasser
08a0eda83e
Merge branch 'devel' into deps-utils-private
...
Conflicts:
packages/session/session.js
2012-10-05 15:14:13 -07:00
David Glasser
be4da5fba4
Revert "Support unlimited tabs by working around browser per-hostname connection limits."
...
This reverts commit 2495cb2f58 .
This change made it easy to construct URLs with more than 63 characters in a
label, which is not legal. We will redo this later with generating a smaller
random token (and taking other precautions to limit the total size of the
label).
2012-10-01 13:45:54 -07:00
David Glasser
2495cb2f58
Support unlimited tabs by working around browser per-hostname connection limits.
...
The URL provided to Meteor.connect may now be a function returning a new URL on
each socket connection, or contain the substring "MeteorWildcard" which is
replaced by a random string (a UUID) on each socket connection.
2012-09-28 11:57:48 -07:00
David Glasser
5470b3f511
Merge branch 'devel' into auth
2012-09-27 13:51:21 -07:00
David Glasser
a016e83754
Let exceptions from stream message callbacks percolate upwards.
...
We used to be unable to do this because of a SockJS bug, but the SockJS folks
read our XXX comment and fixed the bug!
https://github.com/sockjs/sockjs-client/issues/61
2012-09-25 18:26:06 -07:00
David Greenspan
301b03b7d5
Merge branch 'devel' into deps-utils
2012-09-17 18:02:22 -07:00
David Glasser
2fedd2adfc
Merge branch 'devel' into auth
...
Conflicts:
packages/livedata/livedata_common.js
packages/livedata/livedata_connection.js
packages/livedata/livedata_server.js
packages/mongo-livedata/collection.js
2012-09-17 14:42:10 -07:00
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
David Greenspan
3094db17ff
replace connection status logic with three LoCs
2012-09-16 02:48:23 -07:00
Nick Martin
4417dad584
Add option to force reconnect when already connected.
2012-07-23 17:57:12 -07:00
Nick Martin
f5317b3823
Remove broken code. This only reason this didn't cause breakages is we never set up events after being connected.
2012-07-23 17:57:12 -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