---
agentTools:
  projectIndex: https://docs.rainway.com/llms.txt
---

# .NET SDK - DataChannel.Send

# DataChannel.Send method (1 of 2)

Sends a binary message via this data channel.

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

| parameter | description |
| --------- | ----------- |
| data      | binary      |

## See Also

* class [DataChannel](./net-sdk-datachannel)
* namespace [Rainway.SDK](./net-sdk)

***

# DataChannel.Send method (2 of 2)

Sends a text message via this data channel, by encoding it as UTF-8.

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

| parameter | description |
| --------- | ----------- |
| text      | message     |

## See Also

* class [DataChannel](./net-sdk-datachannel)
* namespace [Rainway.SDK](./net-sdk)