private static void SendKeepAlive(object state) { CommonWebSocket websocket = (CommonWebSocket)state; websocket.SendKeepAliveAsync(); }