5 ms·
It's called "the spike", but it's nothing more than EventSource triggering an event to refresh or inject. The client code (for both remote rendering & codecast
by remysharp 14y ago
It's called "the spike", but it's nothing more than EventSource triggering an event to refresh or inject.
The client code (for both remote rendering & codecasting): https://github.com/remy/jsbin/blob/master/public/js/spike.js https://github.com/remy/jsbin/blob/master/public/js/spike.js
The server side: https://github.com/remy/jsbin/blob/master/lib/spike/index.js https://github.com/remy/jsbin/blob/master/lib/spike/index.js
Very simple, but requires an event based server - so Node was the obvious choice for JS Bin.
- splatcollision 14y agoThanks! Will check it out.