3 ms·
I wrote a partial implementation (no event types or useful IDs) of the server-side SSE protocol for kicks using nodejs (an old version of node, but it still see
by thomaslee 15y ago
I wrote a partial implementation (no event types or useful IDs) of the server-side SSE protocol for kicks using nodejs (an old version of node, but it still seems to work):
http://github.com/shinetech/eventserver http://github.com/shinetech/eventserver
Basically you can post JSON messages via HTTP & they're streamed in real time to clients via the Server-Sent Events protocol.
This is a great, simple protocol with a dead-simple client-side API -- I can see it being really popular as browser support for SSE and CORS improves: http://www.w3.org/TR/cors/ http://www.w3.org/TR/cors/