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