然后不在此脚本中运行。websocket 服务器上的调用函数运行良好。
// WAMP server
var wsuri = 'ws://localhost:8080';
// connect
ab.connect(wsuri,
// WAMP session was established
function (session) {
// asynchronous RPC, returns promise object
session.call("hitUp", {
my : 'data'
}).then(function(){
alert('aaaa');
});
}
);