[Cppcms-users] JSON-RPC dispatching together with Normal Web Page
Brought to you by:
artyom-beilis
|
From: Varstray Pl <var...@gm...> - 2020-11-05 14:00:49
|
I am setting up a basic webcomic site which uses a class:
class webcomic : cppcms::application { /*...*/ };
for delivering the webcomic functionality, and a class:
class json_service : public cppcms::rpc::json_rpc_server { /*...*/ };
to deliver additional widget based content in a widgets panel. But now I
can't figure out how to properly dispatch the '/rpc' call that is supposed
to be sent to the rpc server in my overloaded webcomic::main function.
The source code for the implementing chat using json-rpc was... somewhat
helpful, but also confusing, as I couldn't see any other class in there
that inherited from cppcms::application. I'm kind of at a loss for how to
do this.
Please help me. And thank you for your time.
|