Exemplo n.º 1
0
        private async Task OnPingPongAsync(InfoQuery ping)
        {
            if (ping.Type != InfoQueryType.Get)
            {
                return;
            }

            // Send the "pong" response
            await this.SendAsync(ping.AsResponse()).ConfigureAwait(false);
        }
Exemplo n.º 2
0
        private async Task OnRosterPush(InfoQuery rosterPush)
        {
            var transport = XmppTransportManager.GetTransport();

            await transport.SendAsync(rosterPush.AsResponse()).ConfigureAwait(false);
        }