Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        //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);
        }
Ejemplo n.º 3
0
        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>();
        }