Commit Graph

67 Commits

Author SHA1 Message Date
Ian Gulliver
f2a3b3c677 TODO about locking issues 2015-06-28 11:56:41 -07:00
Ian Gulliver
d1a4510d2b Refactoring for sanity, avoid some unnecessary copies. 2015-06-28 11:55:09 -07:00
Ian Gulliver
a3b6977088 More promise plumbing. 2015-06-28 11:43:17 -07:00
Ian Gulliver
4b79ef06de Plumbing for promise integration. 2015-06-28 11:18:05 -07:00
Ian Gulliver
b29690734a Move command queue to our own linked list, so we can attach promises.
Fix OS X build.
2015-06-28 09:54:03 -07:00
Ian Gulliver
f3e38ec8a6 Add double subscribe test. 2015-06-24 04:26:51 +00:00
Ian Gulliver
e5e81673ff Add getmessages test. 2015-06-24 04:20:43 +00:00
Ian Gulliver
1482d81883 Strengthen some SSL options, pave the way for future options and public key pinning. 2015-06-24 04:01:32 +00:00
Ian Gulliver
e04f06e2e5 Autogenerate client IDs to make instantiation easier. Set us up for client ID rotation later. 2015-06-24 03:01:24 +00:00
Ian Gulliver
f3bde736f7 Log timestamp of torture run start. 2015-06-23 03:45:00 +00:00
Ian Gulliver
e29838a58e Fix reconnect test failure. 2015-06-20 17:42:54 +00:00
Ian Gulliver
494a1060f9 Debug log callbacks fired. 2015-06-20 15:37:21 +00:00
Ian Gulliver
a994c7e7ec Clean up debug logging story. 2015-06-20 15:32:57 +00:00
Ian Gulliver
7ab52899de Test-only fix, torture improvements. 2015-06-20 06:22:38 +00:00
Ian Gulliver
e382392170 Torture test script. 2015-06-20 05:48:45 +00:00
Ian Gulliver
33ce1fe805 More resilient method for determining when we've reconnected. 2015-06-20 05:45:26 +00:00
Ian Gulliver
9a726558ca Add complex object test. 2015-06-20 02:56:03 +00:00
Ian Gulliver
aa5751c89d Bulk subscribe support (mainly just to mirror JS) 2015-06-20 01:16:50 +00:00
Ian Gulliver
65c118ce6c Debugging support. 2015-06-19 22:57:11 +00:00
Ian Gulliver
f434b5ff7b Rename and reorder tests to match test.js 2015-06-19 22:35:16 +00:00
Ian Gulliver
457cc92e1e Add login callback. 2015-06-19 22:27:28 +00:00
Ian Gulliver
a850c79817 Hide cosmo struct definition from the public API. 2015-06-19 22:18:24 +00:00
Ian Gulliver
d89d1cc2f6 disconnect callback 2015-06-18 05:43:05 +00:00
Ian Gulliver
d0d0ed1e21 Add a connect callback. 2015-06-18 04:27:17 +00:00
Ian Gulliver
c72f2ff30e Add resubscription after reconnect, with a test. 2015-06-18 04:11:13 +00:00
Ian Gulliver
601c82427a Framework for resubscribing on reconnect, some parsing cleanups. 2015-06-16 04:24:43 +00:00
Ian Gulliver
2790b6bce1 Subscription state tracking, some parsing cleanups. 2015-06-16 02:15:17 +00:00
Ian Gulliver
4a6cb1f9bd Boom, real passing tests. 2015-06-15 03:26:41 +00:00
Ian Gulliver
a006375441 Polling and acks. 2015-06-15 02:27:03 +00:00
Ian Gulliver
0a7adb63a6 Start of polling. 2015-06-14 22:19:18 +00:00
Ian Gulliver
c20605d3c2 Start of move to polling. 2015-06-14 22:12:03 +00:00
Ian Gulliver
e709514293 It's almost like real tests. 2015-06-14 21:41:43 +00:00
Ian Gulliver
8581ba7672 Start of a better C testing framework. 2015-06-14 21:28:01 +00:00
Ian Gulliver
885e7e8715 New makefile target to run valgrind with the correct options 2015-06-14 07:39:37 +00:00
Ian Gulliver
b8204944c9 Add supressions for valgrind due to libcurl being junk. 2015-06-14 07:38:16 +00:00
Ian Gulliver
da865c3f54 Add missing include 2015-06-14 00:33:10 +00:00
Ian Gulliver
43b59c713a Minor fixes. 2015-06-14 00:21:32 +00:00
Ian Gulliver
71a972688c Build fixes for linux. 2015-06-13 20:59:31 +00:00
Ian Gulliver
2ea3dcee71 More portable random number generation. 2015-06-13 20:56:36 +00:00
Ian Gulliver
d94b3d08ae Add passthrough pointer, better Makefile. 2015-06-10 19:50:26 -07:00
Ian Gulliver
b9564576d3 Decode incoming message JSON. 2015-06-09 21:32:34 -07:00
Ian Gulliver
8d9683a00c Callback framework, message callback. 2015-06-07 15:30:08 -07:00
Ian Gulliver
e24794b229 Remove all the pin support for now. 2015-06-07 14:45:21 -07:00
Ian Gulliver
3995a4d0d9 Don't send pins until a subscription is established, since unpin events never come in that case. 2015-06-07 14:16:54 -07:00
Ian Gulliver
190e1eb182 onpin support, but onunpin never fires, so mostly useless right now. 2015-06-07 10:14:15 -07:00
Ian Gulliver
3f40ddb037 Add a big nasty hack to short-circuit lots of event transmission until we get channels working. 2015-06-06 19:37:04 -07:00
Ian Gulliver
45d75172bf Handle incoming message events. Fix unsubscribe. 2015-06-06 19:17:42 -07:00
Ian Gulliver
75853c47ac Implement the cached message & pin fetching functions. 2015-06-06 17:28:49 -07:00
Ian Gulliver
27a7343fed Implement subscription tracking, cosmo_unsubscribe() 2015-06-06 17:15:32 -07:00
Ian Gulliver
2d556844b5 API TODO list. 2015-06-06 16:05:11 -07:00