Skip to content

Add custom ServerCtx with Release() method

Pre-release
Pre-release
Compare
Choose a tag to compare
@meling meling released this 13 Dec 08:46
· 112 commits to master since this release

Simplifies the server API by moving the release() function into a special context object ServerCtx.

Avoid reusing mutex for multiple streams.

Fixed Correctable streams.

incompatible changes

requestHandler: changed from func(context.Context, *Message, chan<- *Message) to func(ServerCtx, *Message, chan<- *Message)

compatible changes

(*Node).Host: added
SendMessage: added
ServerCtx: added