(url)
| 214 | // permessage-deflate so the soak can compare compressed and |
| 215 | // uncompressed wire costs without rebuilding the computerd binary. |
| 216 | function wsStub(url) { |
| 217 | const wsUrl = `${url.replace("http://", "ws://")}/ws`; |
| 218 | const ws = new WebSocket(wsUrl, { |
| 219 | perMessageDeflate: process.env.SOAK_NO_DEFLATE !== "1", |
| 220 | }); |
| 221 | return newWebSocketRpcSession(ws); |
| 222 | } |
| 223 | |
| 224 | // One write into computerd via the SyncRPC push path. senderRev=0 |
| 225 | // marks us as an external writer — the server applies as |