"use client";
import { useMessagesPoll } from "./useMessagesPoll.js";
import { useMessagesSse } from "./useMessagesSse.js";
const messagesStrategy = typeof window !== "undefined" && typeof window.EventSource !== "undefined" ? useMessagesSse : useMessagesPoll;
function useMessages() {
  return messagesStrategy();
}
export {
  useMessages
};
//# sourceMappingURL=useMessages.js.map
