---
title: "makeLibXPCConnectionError:"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/benetworkingprocess/makelibxpcconnectionerror:"
---

# makeLibXPCConnectionError:

Creates a new XPC connection to the extension process.

## Declaration

```occ
- (xpc_connection_t) makeLibXPCConnectionError:(NSError **) error;
```

## Parameters

- `error`: If an error occurs, upon return contains an doc://com.apple.documentation/documentation/Foundation/NSError object that describes the problem. If you don’t want information about errors that happen, pass in NULL.

## Return Value

Return Value An object that represents the new XPC connection, or nil if an error occurs.

## Discussion

Discussion When you create an xpc_connection_t in your browser app using this method, the system calls your extension’s handle(xpcConnection:) method to supply the remote end of the connection to your extension process.
