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

Method DialForever

client.go:256–261  ·  view source on GitHub ↗

Dial connects to the remote Kite. If it can't connect, it retries indefinitely. It returns a channel to check if it's connected or not.

()

Source from the content-addressed store, hash-verified

254// Dial connects to the remote Kite. If it can't connect, it retries
255// indefinitely. It returns a channel to check if it's connected or not.
256func (c *Client) DialForever() (connected chan bool, err error) {
257 c.Reconnect = true
258 connected = make(chan bool, 1) // This will be closed on first connection.
259 go c.dialForever(connected)
260 return
261}
262
263func (c *Client) updateAuth(reg *protocol.RegisterResult) {
264 c.authMu.Lock()

Callers 3

mainFunction · 0.95
SetupKontrolClientMethod · 0.80
mainFunction · 0.80

Calls 1

dialForeverMethod · 0.95

Tested by

no test coverage detected