libwebsockets
Lightweight C library for HTML5 websockets
HTML Chunked Substitution

HTML chunked Substitution

APIs for receiving chunks of text, replacing a set of variable names via a callback, and then prepending and appending HTML chunked encoding headers.