()
| 63 | 'AAAPAQUAAAABhIJBiqDkHROdCbjwHgeG', |
| 64 | ]; |
| 65 | function client() { |
| 66 | const client = tls.connect({ |
| 67 | port: server.address().port, |
| 68 | host: 'localhost', |
| 69 | rejectUnauthorized: false, |
| 70 | ALPNProtocols: ['h2'] |
| 71 | }, () => { |
| 72 | client.end(Buffer.concat(h2fstStream.map((s) => Buffer.from(s, 'base64'))), common.mustSucceed()); |
| 73 | }); |
| 74 | |
| 75 | client.on('error', (error) => { |
| 76 | console.error('Connection error:', error); |
| 77 | }); |
| 78 | } |