()
| 26 | } |
| 27 | |
| 28 | export function createCloudflareWebsocket(): any { |
| 29 | let attachment: any = null |
| 30 | |
| 31 | return { |
| 32 | readyState: 1, |
| 33 | send: vi.fn(), |
| 34 | close: vi.fn(), |
| 35 | serializeAttachment: vi.fn((newAttachment) => { attachment = newAttachment }), |
| 36 | deserializeAttachment: vi.fn(() => attachment), |
| 37 | } |
| 38 | } |
no outgoing calls
no test coverage detected