# Close

> Closes the ChannelClient. This closes the WebSocket client but not the Channel in the ChannelService. Other ChannelClient s can still connect on the same Channel.

## Definition

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

## Close()

Closes the [ChannelClient](/engine/6000.6/script-reference/unityeditor/mpe/channelclient.md). This closes the WebSocket client but not the Channel in the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Other [ChannelClient](/engine/6000.6/script-reference/unityeditor/mpe/channelclient.md)s can still connect on the same Channel.

```csharp
public void Close()
```

### Remarks

For information about closing a channel permanently, see [ChannelService.CloseChannel](/engine/6000.6/script-reference/unityeditor/mpe/channelservice/closechannel.md).

## Close(string)

Closes the [ChannelClient](/engine/6000.6/script-reference/unityeditor/mpe/channelclient.md). This closes the WebSocket client but not the Channel in the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Other [ChannelClient](/engine/6000.6/script-reference/unityeditor/mpe/channelclient.md)s can still connect on the same Channel.

```csharp
public static void Close(string channelName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the channel to close.

### Remarks

For information about closing a channel permanently, see [ChannelService.CloseChannel](/engine/6000.6/script-reference/unityeditor/mpe/channelservice/closechannel.md).
