import { d as e } from "./address-CrYNZ_Nj.mjs";
function t() {
  if (typeof WebSocket < "u")
    return WebSocket;
  if (typeof e.global.WebSocket < "u")
    return e.global.WebSocket;
  if (typeof window.WebSocket < "u")
    return window.WebSocket;
  if (typeof self.WebSocket < "u")
    return self.WebSocket;
  throw new Error("`WebSocket` is not supported in this environment");
}
const n = t();
export {
  n as WebSocket
};
