---
title: "serverHandleIncomingData(_:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/obexsession/serverhandleincomingdata(_:)"
---

# serverHandleIncomingData(_:)

Tranport subclasses need to invoke this from their own data-receive handlers. For example, when data is received over a Bluetooth RFCOMM channel in the IOBluetoothOBEXSession, it in turn calls this to dispatch the data. If you do not handle this case, your server session will not work, guaranteed.

## Declaration

```swift
func serverHandleIncomingData(_ event: UnsafeMutablePointer<OBEXTransportEvent>!)
```

## Parameters

- `event`: New event received from the transport.

## Discussion

Discussion Tranport subclasses must call this for OBEX server sessions to work!
