func (d *domainClient) SetRecording(ctx context.Context, args *SetRecordingArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "BackgroundService.setRecording", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "BackgroundService.setRecording", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "BackgroundService", Op: "SetRecording", Err: err}
	}
	return
}
SetRecording invokes the BackgroundService method. Set the recording state
for the service.
package backgroundservice
import (
	"context"
	"github.com/mafredri/cdp/protocol/internal"
	"github.com/mafredri/cdp/rpcc"
)
type domainClient struct{ conn *rpcc.Conn }
func NewClient(conn *rpcc.Conn) *domainClient {
	return &domainClient{conn: conn}
}
func (d *domainClient) StartObserving(ctx context.Context, args *StartObservingArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "BackgroundService.startObserving", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "BackgroundService.startObserving", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "BackgroundService", Op: "StartObserving", Err: err}
	}
	return
}
func (d *domainClient) StopObserving(ctx context.Context, args *StopObservingArgs) (err error) {
	if args != nil {
		err = rpcc.Invoke(ctx, "BackgroundService.stopObserving", args, nil, d.conn)
	} else {
		err = rpcc.Invoke(ctx, "BackgroundService.stopObserving", nil, nil, d.conn)
	}
	if err != nil {
		err = &internal.OpError{Domain: "BackgroundService", Op: "StopObserving", Err: err}
	}
	return
}