// sendKeepAlive is a helper-function for startSendingKeepAlive
sendKeepAlive is a helper-function for startSendingKeepAlive
// sendKeepAlive is a helper - function for startSendingKeepAlive
func (b *Client) sendKeepAlive() error {
	keepAliveURL := b.URL + constants.RouteApi + constants.RouteLoggedOnly + constants.RouteKeepAlive
	r, err := http.NewRequestWithContext(b.ctx, http.MethodPut, keepAliveURL, nil)
	if err != nil {
		return err
	}
	if _, err := b.client.Do(r); err != nil {
		return err
	}
	return nil
}
func ( b * Client ) sendKeepAlive ( ) error { keepAliveURL := b . URL + constants . RouteApi + constants . RouteLoggedOnly + constants . RouteKeepAlive r , err := http . NewRequestWithContext ( b . ctx , http . MethodPut , keepAliveURL , nil ) if err != nil { return err } if _ , err := b . client . Do ( r ) ; err != nil { return err } return nil }
sendKeepAlive is a helper-function for startSendingKeepAlive
sendKeepAlive is a helper - function for startSendingKeepAlive