support clients that use binary protocol, 0.6.1
This commit is contained in:
@@ -45,6 +45,8 @@ func (c *WSSignalConnection) ReadRequest() (*livekit.SignalRequest, error) {
|
|||||||
msg := &livekit.SignalRequest{}
|
msg := &livekit.SignalRequest{}
|
||||||
switch messageType {
|
switch messageType {
|
||||||
case websocket.BinaryMessage:
|
case websocket.BinaryMessage:
|
||||||
|
// switch to protobuf if client supports it
|
||||||
|
c.useJSON = false
|
||||||
// protobuf encoded
|
// protobuf encoded
|
||||||
err := proto.Unmarshal(payload, msg)
|
err := proto.Unmarshal(payload, msg)
|
||||||
return msg, err
|
return msg, err
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
package version
|
package version
|
||||||
|
|
||||||
const Version = "0.6.0"
|
const Version = "0.6.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user