This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Repository navigation
v0.6.0
This release focuses on significant architectural improvements, introducing the new Server struct with comprehensive ping management capabilities, enhanced connection lifecycle options, and a more responsive client connection model. The changes provide better resource management through dedicated session control methods and a new in-memory server implementation, while simplifying the timeout handling approach through context-based parameters.
Added
- Add automatic server session closure when ping timeout threshold is exceeded.
- Add
Serverstruct that replaces the previousServefunction with equivalent functionality. - Add ping management options for server:
WithServerPingTimeoutandWithServerPingTimeoutThreshold. - Add server lifecycle callback options:
WithServerOnClientConnectedandWithServerOnClientDisconnected. - Add connection management methods:
DisconnectforClientstruct andShutdownforServerTransportinterface. - Add ping management options for client:
WithClientPingTimeoutandWithClientOnPingFailed. - Add
Stopmethod toSessioninterface for controlled session termination. - Add
WithSSEClientMaxPayloadSizeoption to configure maximum payload size in SSE clients. - Add
memoryserver implementation.
Changed
- Modify
Connectmethod to return immediately after session establishment instead of blocking indefinitely. - Update
StartSessionmethod inClientTransportto return aSessionobject instead of an iterator.
Removed
- Remove
WithServerWriteTimeoutandWithServerReadTimeoutoptions as they are no longer necessary with the new timeout model. - Remove
WithClientWriteTimeoutandWithClientReadTimeoutoptions in favor of using context timeout parameters. - Remove
Servefunction in favor of the more flexibleServerstruct implementation. - Remove
Sendfunction fromClientTransportinterface as this functionality is now handled by theSessioninterface.