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

Method SendWebRTCRequest

kontrolclient.go:209–218  ·  view source on GitHub ↗

SendWebRTCRequest sends requests to kontrol for signalling purposes.

(req *protocol.WebRTCSignalMessage)

Source from the content-addressed store, hash-verified

207
208// SendWebRTCRequest sends requests to kontrol for signalling purposes.
209func (k *Kite) SendWebRTCRequest(req *protocol.WebRTCSignalMessage) error {
210 if err := k.SetupKontrolClient(); err != nil {
211 return err
212 }
213
214 <-k.kontrol.readyConnected
215
216 _, err := k.kontrol.TellWithTimeout(WebRTCHandlerName, k.Config.Timeout, req)
217 return err
218}
219
220// GetTokenForce is used to obtain a new token for the given kite.
221//

Callers

nothing calls this directly

Calls 2

SetupKontrolClientMethod · 0.95
TellWithTimeoutMethod · 0.80

Tested by

no test coverage detected