---
title: PlaygroundLiveViewMessageHandler
framework: playgroundsupport
role: symbol
role_heading: Protocol
path: playgroundsupport/playgroundliveviewmessagehandler
---

# PlaygroundLiveViewMessageHandler

A handler you use to send and receive messages between the always-on live view and its corresponding playground page.

## Declaration

```swift
protocol PlaygroundLiveViewMessageHandler : AnyObject
```

## Topics

### Sending Messages

- [send(_:)](playgroundsupport/playgroundliveviewmessagehandler/3029542-send.md)

### Receiving Messages

- [receive(_:)](playgroundsupport/playgroundliveviewmessagehandler/3029540-receive.md)

### Handling Connection Changes

- [liveViewMessageConnectionOpened()](playgroundsupport/playgroundliveviewmessagehandler/3029538-liveviewmessageconnectionopened.md)
- [liveViewMessageConnectionClosed()](playgroundsupport/playgroundliveviewmessagehandler/3029536-liveviewmessageconnectionclosed.md)

## Relationships

### Conforming Types

- [PlaygroundRemoteLiveViewProxy](playgroundsupport/playgroundremoteliveviewproxy.md)

## See Also

### Page-View Communication

- [Messaging Between a Playground Page and the Always-On Live View](playgroundsupport/messaging_between_a_playground_page_and_the_always-on_live_view.md)
- [PlaygroundRemoteLiveViewProxy](playgroundsupport/playgroundremoteliveviewproxy.md)
- [PlaygroundRemoteLiveViewProxyDelegate](playgroundsupport/playgroundremoteliveviewproxydelegate.md)
