---
title: "didEstablishConnection(withHost:version:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.1+]
path: "professional_video_applications/fxprincipaldelegate/didestablishconnection(withhost:version:)"
---

# didEstablishConnection(withHost:version:)

Notifies your XPC service that a connection was established with the host.

## Declaration

```swift
optional func didEstablishConnection(withHost hostBundleIdentifier: String!, version hostVersionString: String!)
```

## Parameters

- `hostBundleIdentifier`: The NSBundleIdentifier of the host application that launched this XPC service.
- `hostVersionString`: The NSShortVersionString of the host application that launched this XPC service.

## Discussion

Discussion Your delegate can implement this protocol to be informed of which host application is calling your plug-in.
