I'd like to send a JSON rpc to a remote web-server. The client-side of my application must be completely javascript. The choice of the client library should be independant from the json-rpc implementation on the server-side. I don't need json-over-http. Simple json objects over tcp/ip is enough for my use-case. Thanks
A:
Since you are connecting to a remote web server, you will have to use HTTP.
You can use XMLHttpRequest for this from Javascript or you can use a library such as jquery that packages it up in an easier to use API. Many Javascript libraries support this functionality.
Jamey Hicks
2010-01-21 13:20:35
A:
You could try jsolait. AFAIR it has support for JsonRPC 1.0 over sockets.
Groleo
2010-01-21 13:38:05
I'll look at the specs, but when you say 'over sockets' you mean that no web-server is required ? So it's JsonRPC over tcp, and not over http?
Valerio Schiavoni
2010-01-22 09:58:59