建立连接¶
创建链接¶
Node.JS Example¶
var jlib = require('jingtum-lib');
var Remote = jlib.Remote;
var remote = new Remote({server: 'ws://ts5.jingtum.com:5020', local_sign:true});
remote.connect(function(err, result) {});
C# Example¶
var remote= new Remote(@"ws://ts5.jingtum.com:5020", true);
remote.Connect(resut =>
{
if(result.Exception != null)
{
Console.Write(reslut.Exception.Message);
}
else
{
Console.Weite(result.Message);
// get result from result.Result
}
});