From a10830a9952691dcd0d35e4c0fb05ba4e9319c9d Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Wed, 3 Jan 2024 00:06:43 -0800 Subject: [PATCH] add protocol version 12 helper (#2358) --- pkg/rtc/types/protocol_version.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/rtc/types/protocol_version.go b/pkg/rtc/types/protocol_version.go index 6dde9a976..ac445e9d8 100644 --- a/pkg/rtc/types/protocol_version.go +++ b/pkg/rtc/types/protocol_version.go @@ -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 +}