mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 18:25:24 +00:00
add protocol version 12 helper (#2358)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user