Ian Gulliver
|
d5941a49f7
|
Whitespace for strict linting.
|
2014-05-28 21:52:12 -07:00 |
|
Ian Gulliver
|
9e791bcf3b
|
Move types inside our namespace to avoid polluting globals. Make some private.
|
2014-05-28 21:43:27 -07:00 |
|
Ian Gulliver
|
6ca7247fc9
|
Lots of style fixes for JavaScript
|
2014-05-28 21:32:01 -07:00 |
|
Ian Gulliver
|
4427af1505
|
Combined our two post-connect functions into one, so we make less HTTP calls.
|
2014-05-27 16:32:59 -07:00 |
|
Ian Gulliver
|
6d6950624f
|
Add onConnect/onDisconnect callbacks
|
2014-05-27 15:48:03 -07:00 |
|
Ian Gulliver
|
1dd1490518
|
Pin test, fixes, cleanup
|
2014-05-27 15:33:51 -07:00 |
|
Ian Gulliver
|
d96c31abf7
|
Remove stupid cycling UUID scheme. Instead, limit server-side pin deduping to a single instance.
|
2014-05-27 14:54:16 -07:00 |
|
Ian Gulliver
|
43dec31217
|
Attempt more reliable handling for connecting with a bad instance ID.
|
2014-05-27 14:43:59 -07:00 |
|
Ian Gulliver
|
fd94334133
|
Change our sender IDs when re-pinning, so we don't race against duping ourselves.
|
2014-05-27 14:33:17 -07:00 |
|
Ian Gulliver
|
e51d42a842
|
Lots of closure annotation to allow JavaScript compile/verification.
|
2014-05-27 14:29:12 -07:00 |
|
Ian Gulliver
|
b6d5e6d6ae
|
Fix completely broken repin-on-connect behavior
|
2014-05-27 10:35:00 -07:00 |
|
Ian Gulliver
|
070521493b
|
Add getLastMessage() for easier key/value storing.
|
2014-05-26 10:02:37 -07:00 |
|
Ian Gulliver
|
898121dabd
|
Remove the concept of keys; they can just be encoded into subject names.
|
2014-05-25 23:50:53 -07:00 |
|
Ian Gulliver
|
8e7af2f5cf
|
Add support for ephemeral messages that are tied to an open channel, aka "pins".
|
2014-05-25 23:40:56 -07:00 |
|
Ian Gulliver
|
1e91f5babb
|
Per-RPC retry support, used when subscribe() can't find an active instance.
|
2014-05-23 15:32:31 -07:00 |
|
Ian Gulliver
|
c6cbae4885
|
Generate a new instance_id when we reconnect the channel, so we look like an entirely different instance.
|
2014-05-23 15:10:49 -07:00 |
|
Ian Gulliver
|
6bfa10e82a
|
Add a third level construct under Profile and Client, Instance. This allows more than one connected object with the same client credentials.
|
2014-05-23 10:31:52 -07:00 |
|
Ian Gulliver
|
1cb61cdf62
|
Split profile() into getProfile() and currentProfile()
|
2014-05-19 21:11:19 +03:00 |
|
Ian Gulliver
|
f27fc7977b
|
Add real subject ACL support and tests.
|
2014-05-19 20:52:57 +03:00 |
|
Ian Gulliver
|
c361d41fcf
|
Delay RPC sending and subject resubscription until we have an open channel on the client side, to try to work around prod appengine disappearing messages. Add a test for channel reconnection and re-subscription.
|
2014-05-19 15:21:21 +03:00 |
|
Ian Gulliver
|
640da84124
|
Make message ordering test more comprehensive and fix a message ordering bug.
|
2014-05-18 22:13:48 +03:00 |
|
Ian Gulliver
|
1ee22da229
|
Add a message ordering test. Fix a nasty ID generation bug.
|
2014-05-18 21:58:40 +03:00 |
|
Ian Gulliver
|
27e857197a
|
Add support for re-subscribing to the same subject with different message fetching parameters.
|
2014-05-18 19:31:22 +03:00 |
|
Ian Gulliver
|
6d7745c6cd
|
Support last_id in subscribe() API. Add a subscription state machine to avoid sending subscribe requests with bad parameters.
|
2014-05-18 19:06:27 +03:00 |
|
Ian Gulliver
|
109a31e1f4
|
Much more careful tracking of current createChannel state, so we don't issue duplicate RPCs or create duplicate channels.
|
2014-05-18 11:47:23 +03:00 |
|
Ian Gulliver
|
b06e94c1c8
|
Refactor onServerEvent for sanity.
|
2014-05-18 11:29:16 +03:00 |
|
Ian Gulliver
|
0380679ddb
|
When rebuilding the channel, subscribe via last seen ID, so we don't miss messages from the time we were disconnected.
|
2014-05-18 11:20:44 +03:00 |
|
Ian Gulliver
|
18d3babc2c
|
Fix debug console. Remove silly subscription logic.
|
2014-05-18 10:49:38 +03:00 |
|
Ian Gulliver
|
6389787833
|
Small API changes to move toward subject ACLs.
|
2014-05-17 19:13:59 +03:00 |
|
Ian Gulliver
|
60c44a25a2
|
Reliable message delivery across instances using the same namespace.
|
2014-05-17 18:43:46 +03:00 |
|
Ian Gulliver
|
966c6c8c50
|
Remove onReady callback and replace with a queue of RPCs ready to send when we have a client_id.
|
2014-05-17 17:48:08 +03:00 |
|
Ian Gulliver
|
994afde51f
|
Make subscribe/unsubscribe/sendMessage return Promises that fire on RPC return.
|
2014-05-17 16:52:28 +03:00 |
|
Ian Gulliver
|
96b17ad6ff
|
Switch to using XHR directly, and drop jquery dep.
|
2014-05-17 16:31:23 +03:00 |
|
Ian Gulliver
|
0247b78c6b
|
Suppress duplicate messages from a client (e.g. when network failure causes retries for RPCs that actually went through).
|
2014-05-16 23:07:38 +03:00 |
|
Ian Gulliver
|
64e16e7ec1
|
Add a way to fetch our current profile ID.
|
2014-05-16 19:03:33 +03:00 |
|
Ian Gulliver
|
5e63eb9ae6
|
Remove overly-verbose logging
|
2014-05-16 18:47:21 +03:00 |
|
Ian Gulliver
|
4033861fc6
|
More reliably close the socket on shutdown(). Make logging include namespace.
|
2014-05-16 18:44:48 +03:00 |
|
Ian Gulliver
|
0d72e4ca38
|
Add comments about other people's bad code.
|
2014-05-16 18:21:59 +03:00 |
|
Ian Gulliver
|
2d2216500a
|
Remove other uses of jquery.
|
2014-05-16 18:02:09 +03:00 |
|
Ian Gulliver
|
f8089fb7a1
|
Remove a use of jquery that was causing some ugly.
|
2014-05-16 18:00:11 +03:00 |
|
Ian Gulliver
|
fe7bab189d
|
Clean up logout handling in tests.
|
2014-05-16 17:57:26 +03:00 |
|
Ian Gulliver
|
482feee804
|
Add login test. Fix bugs in socket teardown, RPC retry. Remove chunk of broken merge code pending rewrite.
|
2014-05-15 19:43:09 +03:00 |
|
Ian Gulliver
|
3f0b7db9dd
|
Add test for two messages with the same key. Fixes to clean shutdown and server-side message duplication.
|
2014-05-15 16:30:08 +03:00 |
|
Ian Gulliver
|
1e755c9693
|
Move onReady callback to after channel response from server, so we have a client_id before we start sending other RPCs.
|
2014-05-14 23:28:56 +03:00 |
|
Ian Gulliver
|
3a3cba9be3
|
First pass at tests and initial bugfixes/necessary features, including onReady callback.
|
2014-05-13 19:12:06 +03:00 |
|
Ian Gulliver
|
600054b5ca
|
Keep a client-side key index and add a lookup function.
|
2014-05-13 18:25:12 +03:00 |
|
Ian Gulliver
|
cf442ed834
|
Send messages JSON-formatted to support a wider set of types.
|
2014-05-13 17:48:30 +03:00 |
|
Ian Gulliver
|
b93481cb10
|
Closure compiler correctness and test script.
|
2014-05-13 17:41:43 +03:00 |
|
Ian Gulliver
|
1b38d81c9c
|
Remove SetValue/GetValue. Add debug console support for keeping track of streaming key values.
|
2014-05-11 19:34:42 +03:00 |
|
Ian Gulliver
|
0575b8918d
|
Add a key field to messages and allow lookup of most recent message by key.
|
2014-05-11 15:43:45 +03:00 |
|