(headers: Record<string, string>)
| 223 | }; |
| 224 | |
| 225 | function createIncomingMessage(headers: Record<string, string>): http.IncomingMessage { |
| 226 | return { |
| 227 | headers, |
| 228 | method: 'GET', |
| 229 | url: '/ws', |
| 230 | } as http.IncomingMessage; |
| 231 | } |
| 232 | |
| 233 | class FakeSocket extends EventEmitter { |
| 234 | written: string[] = []; |