Hey Ozojie, 2013/6/6 Ozojie Chikelu <ozojiechik...@gmail.com>: > Can witty be used to create a restful webserver? Like the backend servers > used for twitter. > I tried implementing a streaming functionality where a connection is opened > to the server and never closed until the client decides or some sever-side > event prompts it to close but the WResource classes seem to have no > suitable method of handling this.
That sounds like long polling; this can be implemented using resource continuations. See WResource::createContinuation() and the waitForMoreData() and haveMoreData() functions to stall the resource at the server. Regards, koen ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest