Microsoft.AspNet.SignalR.Transports.ServerSentEventsTransport.PerformKeepAlive C# (CSharp) Method

PerformKeepAlive() private static method

private static PerformKeepAlive ( object state ) : System.Threading.Tasks.Task
state object
return System.Threading.Tasks.Task
        private static Task PerformKeepAlive(object state)
        {
            var transport = (ServerSentEventsTransport)state;

            transport.Context.Response.Write(new ArraySegment<byte>(_keepAlive));

            return transport.Context.Response.Flush();
        }