Skip to content

v0.5.0

Choose a tag to compare

@Totodore Totodore released this 27 Sep 09:05
· 955 commits to main since this release

v0.5.0

socketioxide

  • A on_disconnect function is now available on the Socket instance. 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_timeout option 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 NsHandlers struct 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 DisconnectReason enum is passed to the on_disconnect callback of the engine handler.
  • Bump tokio-tungstenite to 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