add protocol version 12 helper (#2358)

This commit is contained in:
Paul Wells
2024-01-03 00:06:43 -08:00
committed by GitHub
parent 7c8b60431d
commit a10830a995
+5 -1
View File
@@ -16,7 +16,7 @@ package types
type ProtocolVersion int
const CurrentProtocol = 11
const CurrentProtocol = 12
func (v ProtocolVersion) SupportsPackedStreamId() bool {
return v > 0
@@ -79,3 +79,7 @@ func (v ProtocolVersion) SupportSyncStreamID() bool {
func (v ProtocolVersion) SupportsConnectionQualityLost() bool {
return v > 10
}
func (v ProtocolVersion) SupportsAsyncRoomID() bool {
return v > 11
}