Commit 6d43c14
committed
test: broadcast with a single ack
Calling fetchSockets() and then broadcasting to a remote socket with an
acknowledgement would fail in version < 4.7.3.
```js
const sockets = await io.fetchSockets();
const result = await sockets[0].emitWithAck("ping");
// result was always null regardless of the response of the client
```
Related: socketio/socket.io@df8e70f1 parent 18f47eb commit 6d43c14
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
217 | 238 | | |
218 | 239 | | |
219 | 240 | | |
| |||
0 commit comments