# Send

> Sends an ASCII or binary message to the ChannelService. Depending on how the channel's handler processes the message, it may also be sent to other connections.

## Definition

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

## Send(string)

Sends an ASCII or binary message to the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Depending on how the channel's handler processes the message, it may also be sent to other connections.

```csharp
public void Send(string data)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Data to send.

## Send(byte\[])

Sends an ASCII or binary message to the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Depending on how the channel's handler processes the message, it may also be sent to other connections.

```csharp
public void Send(byte[] data)
```

### Parameters

**** (\[byte\[]]\(https\://learn.microsoft.com/dotnet/api/system.byte)): Data to send.

## Send(int, byte\[])

Sends an ASCII or binary message to the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Depending on how the channel's handler processes the message, it may also be sent to other connections.

```csharp
public static void Send(int connectionId, byte[] data)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The connection ID of the client sending the data.**** (\[byte\[]]\(https\://learn.microsoft.com/dotnet/api/system.byte)): Data to send.
