mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-10 23:48:02 -05:00
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()`