23 Commits

Author SHA1 Message Date
Tom Ashworth
74cd8a4b3b Fix issue where unprocessed data wasn't being sent. 2013-05-20 12:40:06 +01:00
Tom Ashworth
2349637630 Fix /watch by sending raw and processed over EventStream. 2013-05-20 12:37:46 +01:00
Tom Ashworth
65b787e946 Don't modify in place. 2013-05-20 11:53:51 +01:00
Tom Ashworth
0628a26c36 Process data before sending it from spike. 2013-05-20 11:41:00 +01:00
Tom Ashworth
61db8cd38e Monitoring spikes, db method calls and errors. 2013-02-14 15:30:33 +00:00
Aron Carroll
f95a33f760 Linting node source 2012-09-09 22:50:52 +01:00
Remy Sharp
9d432ebc63 Two cheap attempts to clear up memory - EventSource auto reconnects, so that's nice. 2012-08-16 23:56:17 +01:00
Remy Sharp
4c4ef65d77 Allow /[user]/last to *always* receive latest content.
Might need to be wary of leaky memory, but I'm pretty sure it's okay.
2012-08-16 16:44:44 +01:00
Remy Sharp
178e536db3 Bit of defensive code, and keep streams alive with an empty message. 2012-08-16 00:24:22 +01:00
Remy Sharp
85f1ce7d18 Added a reload event to the stream, and supporting CORS
(for a secret project)
2012-08-15 23:40:24 +01:00
Aron Carroll
49ff16bc65 Don't create spike session objects until needed 2012-08-03 17:59:45 +01:00
Aron Carroll
1a23cf51f9 Improve memory management in spike.js
* Clean up session objects when we have no subscribers.
 * Always remove the pending object on timeout. This should hopefully
   stop us hoarding the content of bins with no listeners.
2012-08-03 15:29:05 +01:00
Remy Sharp
157abf276a Fixing jsbin from crashing and less emails from Dave 2012-07-21 00:06:39 +01:00
Remy Sharp
85697e7306 send the JavaScript content since we need it for codecasting 2012-07-10 16:04:28 +02:00
Remy Sharp
0ca398c873 Removed logging 2012-07-09 20:36:27 +02:00
Remy Sharp
30c266c264 Fixed #216. This was checking if request accepted event-stream, browser was sending accepts "*/*" - therefore it did. LOL. 2012-07-09 20:36:08 +02:00
Remy Sharp
e32f37bd9a Not /that/ useful, but affords me some stats. 2012-07-03 00:13:34 +01:00
Aron Carroll
c030ee1857 Now appending spike scripts using events 2012-06-10 14:43:21 +01:00
Remy Sharp
7ec4ec2f4c Throttling spikes 2012-05-06 11:08:07 +01:00
Aron Carroll
ba1d2a9a04 Improved handling of accept header when requesting event stream 2012-05-05 16:31:03 +01:00
Aron Carroll
74b70eff72 Implement log portion of the string
I don't think this has yet been implemented in the client side though.
Logs are available at /:bin/:rev/log and can be created by posting to
the same endpoint.
2012-05-05 16:19:41 +01:00
Aron Carroll
cc96715758 Implement stream of changes to connected devices 2012-05-05 15:53:52 +01:00
Aron Carroll
ddebd2307f Initial work on the server side spike code
Needs a massive code refactor in the near future though :)
2012-05-04 16:32:39 +01:00