Commit Graph

52 Commits

Author SHA1 Message Date
Ian Gulliver
7be8b4e9b6 Add Hogfather.Create() factory. 2015-12-25 14:23:04 -08:00
Ian Gulliver
b90d3d7b44 More hogfather structure. 2015-12-24 15:12:25 -08:00
Ian Gulliver
6e879ce1d5 Add hogfather basic structure. 2015-12-24 15:00:26 -08:00
Ian Gulliver
8b6f5c916d First Hogfather test. 2015-10-17 16:04:37 +02:00
Ian Gulliver
f77007e047 Fix some lint errors from previous commit. 2015-10-15 21:55:55 +02:00
Ian Gulliver
a59f7f97f3 Add support for "local" subjects, which don't get pushed to the serve and get destroyed on unsubscribe. 2015-10-15 19:05:39 +02:00
Ian Gulliver
9b5a55b737 Add two event listener tests, mostly as examples. 2015-10-14 17:04:01 +02:00
Ian Gulliver
3fa24f803d Switch to idiomatic JS Event framework.
Remove Unity debugging, as we no longer have interested clients.
2015-05-31 18:00:07 -07:00
Ian Gulliver
7e3af49303 Fix test race condition in Profile merge. 2015-05-31 10:07:07 -07:00
Ian Gulliver
72c7453091 Style fixes. 2014-06-27 23:17:33 -07:00
Ian Gulliver
f12d8cb8ea Keep up with QUnit API change. 2014-06-27 23:15:53 -07:00
Ian Gulliver
3c452dabf3 Add message translation layer than can handle "me" as an ACL. 2014-06-19 23:14:26 -07:00
Ian Gulliver
40229ff0c0 Return the new message for sendMessage and pin RPCs. Pass it through the sendMessage Promise callback. 2014-06-12 23:12:00 -07:00
Ian Gulliver
828a9c50ea Add bulk subscribe support. 2014-06-11 21:46:50 -07:00
Ian Gulliver
d2e7b76df9 Add support for magic "admin" ACL that is only satisfied by appengine administrators. 2014-06-08 23:41:23 -07:00
Ian Gulliver
5079aac9a6 Allow subscribe to return events from a subject even when not creating a subscription 2014-06-01 21:14:58 -07:00
Ian Gulliver
5d39c9abdf Last ugly style guide compliance fixes 2014-05-28 23:25:53 -07:00
Ian Gulliver
76bd05d03d Lint cleanup for tests 2014-05-28 21:56:12 -07:00
Ian Gulliver
9736c15faa Subjects get a key name to enforce uniqueness. 2014-05-28 13:51:42 -07:00
Ian Gulliver
e9752f9277 (Failing) test to race to duplicate a subject 2014-05-28 13:36:12 -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
e51d42a842 Lots of closure annotation to allow JavaScript compile/verification. 2014-05-27 14:29:12 -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
9b14a5a14b Move the two channels test to the dev appserver, since the second channel never connects in prod. 2014-05-23 11:45:34 -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
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