public Startup() { this._conn = new CrossbarConnection(); this._conn.Initilize(new ConnectionParameters { ServerAddress = "192.168.1.6", Port = 8081, ServerRealm = "im_soft" }); var con = this._conn.Connect(); var res = con.Result; }
//Conexão Crossbar.IO private bool AbrirConexao() { this._conn = new CrossbarConnection(); this._conn.Initilize(new ConnectionParameters { ServerAddress = "192.168.1.11", Port = 8081, ServerRealm = "im_soft" }); var resConn = this._conn.Connect(); var res = resConn.Result; return(res); }
public Publish(CrossbarConnection conn) { this._conn = conn; this._channel = this._conn.Instance <IWampChannel>(); }
public Subscribe(CrossbarConnection conn) { this._conn = conn; this._channel = this._conn.Instance <IWampChannel>(); }