December 2017

aardio jsonrpc 服务端和 js jsonrpc 客户端

aardio 服务端示例:

//JSON-RPC服务端

import console;

import process;

import wsock.tcp.simpleHttpServer;

var server = wsock.tcp.simpleHttpServer("127.0.0.1",1428);


console.setTitle("JSON-RPC服务端器已启动",server.getUrl());


 //下面的代码也适用于IIS/FastCGI环境

server.run(

function(response,request){

if( request.path !="/jsonrpc" ){