go-multistream
go-multistream copied to clipboard
signal selected protocol to callers
When the handlerfunc for a particular handler is called, we should signal which protocol was selected. This will make it easier for application logic to change its behaviour based on protocol versions.
Related: https://github.com/multiformats/multistream/issues/8