I still can't seem to get a "correct" answer to this question.
Essentially I want to create a JSON-RPC server with the following functions
string subcribe_to_feed( callback )
string get_information( params )
The client is an iPhone application, and the server should be done in Twisted (if possible)
The client should be able to do something like
void handle_data( string )
{
// Do something with data
}
server = internet.connect_to_service("http://myservice.com:80")
initialization_data = server.subscribe_to_feed(handle_data)
// Do something with initialization_data
information = server.get_information("Some params!")
// Do something with information
The subscribe_to_feed would register the iPhone client with a Comet service somewhere. The get_information is a straight up JSON-RPC Request/Response type thing. How the hell can I manage this, please be explicit.