UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 528 B
import{n as e}from"./rolldown-runtime-8BhlS34s.js";function t(e,t=globalThis.location?.href){let n=new URL(t??globalThis.location.href,globalThis.location?.href);n.protocol===`http:`?n.protocol=`ws:`:n.protocol===`https:`&&(n.protocol=`wss:`);let r=new URL(e,n);if(r.protocol===`http:`?r.protocol=`ws:`:r.protocol===`https:`&&(r.protocol=`wss:`),r.protocol!==`ws:`&&r.protocol!==`wss:`)throw Error(`Gateway stream URL must use WebSocket transport`);return r.toString()}function n(){return(n=e((()=>{})))()}export{t as n,n as t};