protected void OnEnterFrame(object sender, ElapsedEventArgs e) { if (socket != null) { socket.CheckStatus(); } }