import { v as validateAuth } from './auth-DuunT7Cg.js';
import { g as getEventsClientCount } from './events-handler-Dm1mNPQP.js';
import { j as json } from './index-CoD1IJuy.js';
import './shared-server-DaWdgxVh.js';
import 'crypto';

function getConnectedClientCount() {
  return getEventsClientCount();
}
const GET = ({ request }) => {
  const authError = validateAuth(request);
  if (authError) {
    return authError;
  }
  return json({
    connectedClients: getConnectedClientCount()
  });
};

export { GET };
//# sourceMappingURL=_server.ts-CyjDrcZN.js.map
