# ChannelClientScope

> Create a new Channel Client scope.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.MPE](/engine/6000.7/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

## ChannelClientScope(bool, string, Action\<string>, bool)

Create a new Channel Client scope.

```csharp
public ChannelClientScope(bool autoTick, string channelName, Action<string> handler, bool closeClientOnExit = true)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, starts the channel client in auto tick mode.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the channel to open.**** (\[Action\<string>]\(https\://learn.microsoft.com/dotnet/api/system.action)): Handler to process message on the channel.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, closes the client on exit.

## ChannelClientScope(bool, string, Action\<byte\[]>, bool)

Create a new Channel Client scope.

```csharp
public ChannelClientScope(bool autoTick, string channelName, Action<byte[]> handler, bool closeClientOnExit = true)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, starts the channel client in auto tick mode.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the channel to open.**** (\[Action\<byte\[]>]\(https\://learn.microsoft.com/dotnet/api/system.action)): Handler to process message on the channel.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, closes the client on exit.
