MCPcopy
hub / github.com/livekit/livekit / sendRequest

Method sendRequest

test/client/client.go:834–843  ·  view source on GitHub ↗
(msg *livekit.SignalRequest)

Source from the content-addressed store, hash-verified

832}
833
834func (c *RTCClient) sendRequest(msg *livekit.SignalRequest) error {
835 payload, err := proto.Marshal(msg)
836 if err != nil {
837 return err
838 }
839
840 c.wsLock.Lock()
841 defer c.wsLock.Unlock()
842 return c.conn.WriteMessage(websocket.BinaryMessage, payload)
843}
844
845func (c *RTCClient) SendIceCandidate(ic *webrtc.ICECandidate, target livekit.SignalTarget) error {
846 prevIC := c.icQueue[target].Swap(ic)

Callers 1

SendRequestMethod · 0.95

Calls 2

WriteMessageMethod · 0.65
MarshalMethod · 0.45

Tested by

no test coverage detected