100 Commits
Author SHA1 Message Date
Ian Gulliver 381283d864 Document "me" ACL. 2014-06-19 23:30:30 -07:00
Ian Gulliver f1bfb42258 Document connected() 2014-06-19 23:28:21 -07:00
Ian Gulliver fec7ee2556 Extern for connected() 2014-06-17 21:29:57 -07:00
Ian Gulliver cb862d787d Add hashCode to externs. 2014-06-16 21:34:41 -07:00
Ian Gulliver a51359068f Flesh out externs file 2014-06-14 12:21:16 -07:00
Ian Gulliver 7ef3e5ab0c Add referenced typedefs. 2014-06-14 11:05:53 -07:00
Ian Gulliver fb0d695d6e Start of cosmopolite externs. 2014-06-14 11:00:35 -07:00
Ian Gulliver ffc597f222 Document uuid() 2014-06-14 10:28:52 -07:00
Ian Gulliver cded0a2865 Fix expiration units. 2014-06-13 21:26:37 -07:00
Ian Gulliver 2be4467784 Compress image, lengthen cache lifetime. 2014-06-13 21:20:13 -07:00
Ian Gulliver 28daefd58a Enable more pagspeed. 2014-06-13 18:27:34 -07:00
Ian Gulliver 107b0a3132 Remove junk styles. 2014-06-13 18:24:20 -07:00
Ian Gulliver 568e1ad04f Document new sendMessage resolution callback argument. 2014-06-12 23:14:37 -07:00
Ian Gulliver 5b9dc202b7 Document batch subscribe behavior. 2014-06-12 21:18:04 -07:00
Ian Gulliver 53eea12572 Add documentation for magic "admin" value 2014-06-08 23:44:08 -07:00
Ian Gulliver 87e90cc1e7 Update tutorial for new tutorial editor pages 2014-06-08 19:46:10 -07:00
Ian Gulliver 389f67c88b Add mailing list links and tracking 2014-06-08 18:57:29 -07:00
Ian Gulliver d3c5a0fbbd Expand analytics integration 2014-06-08 18:22:46 -07:00
Ian Gulliver 283aaa7f2a Document trackEvent and start messing with analytics. 2014-06-08 18:11:42 -07:00
Ian Gulliver c23c19edc2 Document pin methods 2014-06-08 18:02:45 -07:00
Ian Gulliver b8cc239408 Document getMessages and getLastMessage 2014-06-08 12:21:24 -07:00
Ian Gulliver b67d800bcf Remove CNAME file; now hosted on Google apps. 2014-06-08 11:48:44 -07:00
Ian Gulliver 22ce42cc8a Document sendMessage() 2014-06-08 11:48:31 -07:00
Ian Gulliver a9bfcb449c Document more methods. 2014-06-08 10:44:20 -07:00
Ian Gulliver 553b50fa2a List of public methods 2014-06-08 09:44:57 -07:00
Ian Gulliver dfc4a661ff Add the start of a reference page. Also add backlinks to the index. 2014-06-08 01:23:42 -07:00
Ian Gulliver 2e36c01334 Simplify playground URL, fix tutorial omission 2014-06-07 23:34:47 -07:00
Ian Gulliver 22072ed385 Add rudimentary overview page 2014-06-07 23:28:37 -07:00
Ian Gulliver 55b8f248ce Fix tracking tags. 2014-06-07 23:10:54 -07:00
Ian Gulliver 47e174d0e7 Modifications for appengine 2014-06-04 21:44:18 -07:00
Ian Gulliver 37dc4555b7 Remove silly javascript scaling thing. 2014-06-04 21:39:15 -07:00
Ian Gulliver c8c8957c15 Suggested tutorial cleanups 2014-06-03 22:14:02 -07:00
Ian Gulliver 1031f2fee9 Change playground URL 2014-06-03 22:00:40 -07:00
Ian Gulliver df1beb58d9 Add tutorial entry about pins 2014-05-26 16:51:58 -07:00
Ian Gulliver f1a670749d Simplify with getLastMessage() 2014-05-26 10:03:27 -07:00
Ian Gulliver 34744c2a36 Add domain reference 2014-05-26 09:47:08 -07:00
Ian Gulliver 8d1d79ef58 Remove reference to key and add pin overview 2014-05-25 23:55:42 -07:00
Ian Gulliver 2ec0402962 Change titles. 2014-05-23 15:12:32 -07:00
Ian Gulliver d6933a85e2 Link to the playground application 2014-05-23 11:47:56 -07:00
Ian Gulliver c15b57aa05 Incognito windows no longer needed. 2014-05-23 11:46:15 -07:00
Ian Gulliver 518f3a45af Add tutorial section on using keys 2014-05-22 13:14:58 -07:00
Ian Gulliver fca0da9917 Minor formatting style 2014-05-22 12:27:51 -07:00
Ian Gulliver e8ec10c26e Tutorial gets through subscribing to a subject 2014-05-22 12:17:46 -07:00
Ian Gulliver f2f191f118 Flesh out testing section 2014-05-22 11:38:45 -07:00
Ian Gulliver d5242b2c86 Add tutorial 2014-05-22 11:35:21 -07:00
Ian Gulliver 11010fdcd4 Start of tutorial 2014-05-22 11:34:33 -07:00
Ian Gulliver f8105f5d9f Remove IE compat 2014-05-22 11:11:10 -07:00
Ian Gulliver 48085dd978 Switch to universal analytics 2014-05-22 11:10:12 -07:00
Ian Gulliver d862580b22 Lots of new links for definitions. 2014-05-22 11:08:37 -07:00
Ian Gulliver 725c83d96f A little bit of header layout 2014-05-22 11:02:20 -07:00
Ian Gulliver 65bfdda48f Remove junk file 2014-05-22 11:00:28 -07:00
Ian Gulliver f73308434f Remove reference to fctv 2014-05-22 10:59:11 -07:00
Ian Gulliver f4b18f32ec Remove spam footer. 2014-05-22 10:58:33 -07:00
Ian Gulliver 2dbc17ec98 Try to sort out this mess. 2014-05-22 10:53:52 -07:00
Ian Gulliver 24825f53c6 Merge branch 'gh-pages' of https://github.com/flamingcowtv/cosmopolite into gh-pages 2014-05-22 10:51:25 -07:00
Ian Gulliver 0d821547e3 Package overview 2014-05-22 10:38:34 -07:00
Ian Gulliver 8fd851c409 Fix a subscribe bug when last_id=0 2014-05-20 10:26:10 -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 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 63ac321537 Establish a definite ordering and sequential IDs for messages, at the expense of another datastore read/write pair. 2014-05-18 10:58:39 +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 d3f716a081 Use a property instead of key_name to hold subject name. This makes Message.ToEvent() do an additional datastore read, but opens up the ability to add more subject indexes. 2014-05-17 18:50:12 +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 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 81d7db3678 Fix profile merge code on login, add test. 2014-05-16 22:35:20 +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 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 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 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
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 e7221f9050 Fix debug scripts after change to namespace. 2014-05-13 17:42:52 +03:00
Ian Gulliver b93481cb10 Closure compiler correctness and test script. 2014-05-13 17:41:43 +03:00