SendWebRTCRequest sends requests to kontrol for signalling purposes.
(req *protocol.WebRTCSignalMessage)
| 713 | |
| 714 | // SendWebRTCRequest sends requests to kontrol for signalling purposes. |
| 715 | func (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. |