SendWebRTCRequest sends requests to kontrol for signalling purposes.
(req *protocol.WebRTCSignalMessage)
| 207 | |
| 208 | // SendWebRTCRequest sends requests to kontrol for signalling purposes. |
| 209 | func (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 | // |
nothing calls this directly
no test coverage detected