Exemplo n.º 1
0
        public Task<bool> ConnectNucWebSocket(string url)
        {
            return Task.Factory.StartNew<bool>(() =>
            {
                if (nucSocket == null)
                    nucSocket = new KoalaWebSocket(false);

                var connect = nucSocket.Connect(url, "");
                return connect;
            });
        }
Exemplo n.º 2
0
        public Task<bool> ConnectKoalaWebSocket(string url)
        {
            return Task.Factory.StartNew<bool>(() =>
            {
                if (koalaSocket == null)
                    koalaSocket = new KoalaWebSocket(true);

                koalaSocket.OnRecognizedResult += KoalaSocket_OnRecognizedResult;
                var connect = koalaSocket.Connect(url, "");
                return connect;
            });
        }
Exemplo n.º 3
0
        public Task<bool> WebSocket(string url)
        {
            return Task.Factory.StartNew<bool>(() =>
            {
                if (socket == null)
                    socket = new KoalaWebSocket();

                var connect = socket.Connect(url, "");
                return connect;
            });
        }