Files
socket.io/test
Damien Arrachequesne 655dce9755 feat: implement retry mechanism
Syntax:

```js
const socket = io({
  retries: 3,
  ackTimeout: 10000
});

// "my-event" will be sent up to 4 times (1 + 3), until the server sends an acknowledgement
socket.emit("my-event", (err) => {});
```

Notes:

- the order of the packets is guaranteed, as we send packets one by one
- the same packet id is reused for consecutive retries, in order to
allow deduplication on the server side
2023-02-01 08:19:34 +01:00
..
2016-02-28 02:36:06 +08:00
2023-02-01 08:19:34 +01:00
2022-11-17 09:51:12 +01:00
2023-02-01 08:19:34 +01:00
2023-02-01 08:19:34 +01:00