[Cppcms-users] jsonrpc localhost configuration
Brought to you by:
artyom-beilis
|
From: malus <za...@gm...> - 2013-06-07 05:35:13
|
Hi Artyom,
I intended to run jsonrpc chat sample program using http on local machine
The configuration is as follows:
I put index.html and folder client_side in the same directory and
add rpc = new JsonRPC('http://localhost:808/chat',['get'],['post']); to
index.html
Then I compile and run the chat.cpp with ./chat -c -config.js.
Then I opened index.html, nothing post or get. Could help me to figure out
what wrong it is.
Thank,
malus
config.js
{
"service" : {
"api" : "http",
"port" : 8080
},
"http" : {
"script" : "/chat"
},
"file_server" : {
"enable" : true,
"alias" : [
{
"url" : "/scripts" ,
"path" : "./client_side/jsonrpc"
}
],
"document_root" : "."
},
}
|