.NET SDK - RainwayPeer.Send

RainwayPeer.Send method (1 of 2)

Send a binary message to this peer.

public void Send(string channel, ReadOnlySpan<byte> message)
parameterdescription
channelName of the channel to send the message on.
messageThe message to be sent.

See Also


RainwayPeer.Send method (2 of 2)

Send a string message to this peer.

public void Send(string channel, string message)
parameterdescription
channelName of the channel to send the message on.
messageThe message to be sent.

Remarks

The string will be encoded to a UTF8 byte array.

See Also