# ChannelClientScope

> Scope that can be use to open a channel client on a specific channel and close the channel when the scope ends.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.MPE](/engine/6000.7/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct ChannelClientScope : IDisposable
```

## Constructors

| Constructor                                                                                                                                                                                                                     | Description                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| [ChannelClientScope(System.Boolean,System.String,System.Action\{System.Byte\[\]},System.Boolean)](/engine/6000.7/script-reference/unityeditor/mpe/channelclientscope/ctor.md#channelclientscope\(bool-string-actionbyte-bool\)) | Create a new Channel Client scope. |
| [ChannelClientScope(System.Boolean,System.String,System.Action\{System.String},System.Boolean)](/engine/6000.7/script-reference/unityeditor/mpe/channelclientscope/ctor.md#channelclientscope\(bool-string-actionstring-bool\)) | Create a new Channel Client scope. |

## Properties

| Property                                                                               | Description                          |
| -------------------------------------------------------------------------------------- | ------------------------------------ |
| [client](/engine/6000.7/script-reference/unityeditor/mpe/channelclientscope/client.md) | Get the Chanel client of this scope. |
