Commit Graph

22 Commits

Author SHA1 Message Date
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
56f0f3aeba Add test for subscribe barrier behavior 2014-05-18 19:12:32 +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
c8c968a2aa Add test for getMessages/subscribe interaction. Move other tests into their own namespaces. 2014-05-18 18:49:34 +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
1a66b86c13 Add test for duplicate message suppression. Fix totally broken subscribe by key code. 2014-05-17 18:04:57 +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
6615bb88e2 Make profile merge test messages friendlier. 2014-05-16 23:11:58 +03:00
Ian Gulliver
81d7db3678 Fix profile merge code on login, add test. 2014-05-16 22:35:20 +03:00
Ian Gulliver
cb02c1ad2f Simplify tests to try to obey the one-channel-per-browser rule. 2014-05-16 18:30:27 +03:00
Ian Gulliver
0d72e4ca38 Add comments about other people's bad code. 2014-05-16 18:21:59 +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
0b037e899a Make sure we're logged out for each test. 2014-05-15 19:32:23 +03:00
Ian Gulliver
179fad1c96 Add test for complex object 2014-05-15 19:23:21 +03:00
Ian Gulliver
92be7e7b28 Move test javascript to test.js 2014-05-15 19:05:44 +03:00