v0.5.0
v0.5.0
socketioxide
- A
on_disconnectfunction is now available on theSocketinstance. The provided callback will be called when the socket disconnects with the reasons for the disconnection. This is useful for logging or cleanup data. - A
connect_timeoutoption is now available in the config options. It is the maximum time to wait for a socket.io handshake before closing the connection. The default is 45 seconds. - A
NsHandlersstruct was added. It describes namespace handlers passed to the SocketIoLayer/SocketIoService. Before, it was a type alias for a HashMap and it was containing types that were not supposed to be public.
engineioxide
- A
DisconnectReasonenum is passed to theon_disconnectcallback of the engine handler. - Bump
tokio-tungsteniteto 0.20.1.
What's Changed
- feat(socketioxide): disconnect handler by @Totodore in #41
- docs: update Readme.md by @Totodore in #78
- feat(socketio/ns): create a wrapper struct for NsHandlers and export it by @Totodore in #79
- chore(ci): add actions/cache by @Totodore in #81
- chore(ci): add release/test flag to key to separate caches by @Totodore in #82
- feat(socketio): connect timeout implementation by @Totodore in #80
Full Changelog: v0.4.1...v0.5.0