MCPcopy Index your code
hub / github.com/koding/kite / SendWebRTCRequest

Method SendWebRTCRequest

client.go:715–722  ·  view source on GitHub ↗

SendWebRTCRequest sends requests to kontrol for signalling purposes.

(req *protocol.WebRTCSignalMessage)

Source from the content-addressed store, hash-verified

713
714// SendWebRTCRequest sends requests to kontrol for signalling purposes.
715func (c *Client) SendWebRTCRequest(req *protocol.WebRTCSignalMessage) error {
716 timeout := time.Duration(0)
717 if c.Config != nil {
718 timeout = c.Config.Timeout
719 }
720 _, err := c.TellWithTimeout(WebRTCHandlerName, timeout, req)
721 return err
722}
723
724// TellWithTimeout does the same thing with Tell() method except it takes an
725// extra argument that is the timeout for waiting reply from the remote Kite.

Callers 2

ServeKiteMethod · 0.45
TestKontrol_HandleWebRTCFunction · 0.45

Calls 1

TellWithTimeoutMethod · 0.95

Tested by 1

TestKontrol_HandleWebRTCFunction · 0.36