Download src/lib/isomorphic/browser.ts from henry331/newbing: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/spaces/henry331/newbing/resolve/main/src/lib/isomorphic/browser.ts
- Command line
-
hf download hf://spaces/henry331/newbing/src/lib/isomorphic/browser.ts
-
curl -L -o browser.ts https://huggingface.co/spaces/henry331/newbing/resolve/main/src/lib/isomorphic/browser.ts
235 Bytes
| '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 } | |