support clients that use binary protocol, 0.6.1

This commit is contained in:
David Zhao
2021-03-15 10:57:15 -07:00
parent 7d02c01fd8
commit 9b2c2f351c
2 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ func (c *WSSignalConnection) ReadRequest() (*livekit.SignalRequest, error) {
msg := &livekit.SignalRequest{}
switch messageType {
case websocket.BinaryMessage:
// switch to protobuf if client supports it
c.useJSON = false
// protobuf encoded
err := proto.Unmarshal(payload, msg)
return msg, err

View File

@@ -1,3 +1,3 @@
package version
const Version = "0.6.0"
const Version = "0.6.1"