SIGN IN SIGN UP
socketio / socket.io UNCLAIMED

Realtime application framework (Node.JS server)

0 0 0 TypeScript

refactor(typings): improve emit types (#4817)

This commit fixes several issues with emit types:

- calling `emit()` without calling `timeout()` first is now only available for events without acknowledgement
- calling `emit()` after calling `timeout()` is now only available for events with an acknowledgement
- calling `emitWithAck()` is now only available for events with an acknowledgement
- `timeout()` must be called before calling `emitWithAck()`
Z
Zachary Haber committed
f6ef267b035a4db49b7d0fce438ca5c5b686f547
Parent: 1cdf36b
Committed by GitHub <noreply@github.com> on 10/11/2023, 8:37:13 AM