// WebSocket Event Constants (sync with backend)
export const SOCKET_EVENTS = {
  // Connection events
  CONNECT: "connect",
  DISCONNECT: "disconnect",
  CONNECTION_ERROR: "connect_error",

  // Authentication events
  AUTHENTICATE: "authenticate",
  AUTHENTICATED: "authenticated",
  UNAUTHORIZED: "unauthorized",

  // Session events
  CREATE_SESSION: "create_session",
  SESSION_CREATED: "session_created",
  JOIN_CHAT: "join_chat",
  CHAT_JOINED: "chat_joined",
  LEAVE_CHAT: "leave_chat",
  CHAT_LEFT: "chat_left",

  // Message events
  SEND_MESSAGE: "send_message",
  MESSAGE_RECEIVED: "message_received",
  BOT_RESPONSE_START: "bot_response_start",
  BOT_RESPONSE_CHUNK: "bot_response_chunk",
  BOT_RESPONSE_END: "bot_response_end",
  BOT_RESPONSE: "bot_response",

  // Status events
  TYPING_START: "typing_start",
  TYPING_STOP: "typing_stop",
  USER_JOINED: "user_joined",
  USER_LEFT: "user_left",

  // Error events
  ERROR: "error",
  WEBSOCKET_ERROR: "websocket_error",
  SESSION_ERROR: "session_error",
  MESSAGE_ERROR: "message_error",
};
