private void FireOnSent(BaseSocketConnection connection, byte[] buffer, bool sentByServer) { if (connection.Active) { FSocketService.OnSent(new MessageEventArgs(connection, buffer, sentByServer)); } }