func (c *Client) Attach(r *protocol.AttachRequest) (*protocol.AttachResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.AttachResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Attach connects to the root node of a service.
Attach connects to the root node of a service.
// Attach connects to the root node of a service .
func (c *Client) Attach(r *protocol.AttachRequest) (*protocol.AttachResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.AttachResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Attach ( r * protocol . AttachRequest ) ( * protocol . AttachResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . AttachResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Attach connects to the root node of a service.
Attach connects to the root node of a service .