Re: [Cppcms-users] jsonrpc localhost configuration
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-06-07 07:43:36
|
On 06.06.2013 22:27, malus wrote:
> 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
you forgot a *0* => 8080 Maybe this fixes it?!
> index.html
>
> Then I compile and run the chat.cpp with ./chat -c -config.js.
>
> Then I opened index.html,
Do you open it as file:// or as http:// ? the last one is the right one.
> nothing post or get.
What?
> Could help me to figure out
> what wrong it is.
I think you are using the example index and .cpp file, aren't you? Is
this there any output from the webserver (the chat app). Can you do
this? wget -O - http://localhost:8080/chat if not something more is wrong.
> Thank,
>
> malus
Regards
Marcel
>
> config.js
>
> {
> "service" : {
> "api" : "http",
> "port" : 8080
> },
> "http" : {
> "script" : "/chat"
> },
> "file_server" : {
> "enable" : true,
> "alias" : [
> {
> "url" : "/scripts" ,
> "path" : "./client_side/jsonrpc"
> }
> ],
> "document_root" : "."
> },
>
> }
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
|