Re: [Cppcms-users] Server Sent events and CppCMS
Brought to you by:
artyom-beilis
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 20:44:33
|
Hi again. So I managed to implement a chat using SSE and CppCMS, you can find it here: https://gist.github.com/3307849 (the Makefile and config.js are the same ones as in the "Implementing Chat" tutorial) It's just a proof of concept, it has issues: The biggest one is that after I send some messages and wait for about 30 seconds the following error appears: http://i.imgur.com/jtQUZ.png If I refresh the page everything seems fine again, then if I wait 30 seconds with no activity the error appears. I think this is somehow related to chat::get(), but I'm not really sure. What response is generated if chat::get() sends no explicit response? The second issue is the TODO in chat.cpp. -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |