---
title: makeLibXPCConnectionError()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/beextensionprocess/makelibxpcconnectionerror()
---

# makeLibXPCConnectionError()

Creates a new libXPC connection to the extension process.

## Declaration

```swift
func makeLibXPCConnectionError() throws -> xpc_connection_t
```

## Return Value

Return Value The connection object representing the created libXPC connection or nil.

## Discussion

Discussion This method creates a connection to the extension process and returns it. If it isn’t possible to make an XPC connection, this method returns nil and populates the error parameter.

## See Also

- [invalidate()](browserenginekit/beextensionprocess/invalidate().md)
