---
title: makeLibXPCConnection()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/renderingprocess/makelibxpcconnection()
---

# makeLibXPCConnection()

Creates a new XPC connection to the extension process.

## Declaration

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

## Return Value

Return Value An object that represents the new XPC connection.

## 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.
