handleHeartbeat pings the callback with the given interval seconds.
(r *Request)
| 244 | |
| 245 | // handleHeartbeat pings the callback with the given interval seconds. |
| 246 | func (k *Kite) handleHeartbeat(r *Request) (interface{}, error) { |
| 247 | req, err := newHeartbeatReq(r) |
| 248 | if err != nil { |
| 249 | return nil, err |
| 250 | } |
| 251 | |
| 252 | k.heartbeatC <- req |
| 253 | |
| 254 | return nil, req.ping() |
| 255 | } |
nothing calls this directly
no test coverage detected