'use client' | |
const debug = console.info.bind(console) | |
class WebSocketAlias extends WebSocket { | |
constructor(address: string | URL, ...args: any) { | |
super(address) | |
} | |
} | |
export default { fetch, WebSocket: WebSocketAlias, debug } | |
'use client' | |
const debug = console.info.bind(console) | |
class WebSocketAlias extends WebSocket { | |
constructor(address: string | URL, ...args: any) { | |
super(address) | |
} | |
} | |
export default { fetch, WebSocket: WebSocketAlias, debug } | |