Add stats for data channel and signal (#1198)
* Add stats for data channel and signal * Solve comment
This commit is contained in:
@@ -589,7 +589,12 @@ func (c *RTCClient) PublishData(data []byte, kind livekit.DataPacket_Kind) error
|
||||
},
|
||||
}
|
||||
|
||||
return c.publisher.SendDataPacket(dp)
|
||||
dpData, err := proto.Marshal(dp)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return c.publisher.SendDataPacket(dp, dpData)
|
||||
}
|
||||
|
||||
func (c *RTCClient) GetPublishedTrackIDs() []string {
|
||||
|
||||
Reference in New Issue
Block a user