use protobuf for clients with protocol > 1 (#52)

This commit is contained in:
David Zhao
2021-07-13 22:28:34 -07:00
committed by GitHub
parent 850fecf931
commit 53b52a67ca
3 changed files with 14 additions and 4 deletions
+4
View File
@@ -8,6 +8,10 @@ func (v ProtocolVersion) SupportsPackedStreamId() bool {
return v > 0
}
func (v ProtocolVersion) SupportsProtobuf() bool {
return v > 0
}
func (v ProtocolVersion) HandlesDataPackets() bool {
return v > 1
}