Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 12 days ago

Definition

Send(string)

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.
public void Send(string data)

Parameters

data

Data to send.

Send(byte[])

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.
public void Send(byte[] data)

Parameters

data

Data to send.

Send(int, byte[])

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.
public static void Send(int connectionId, byte[] data)

Parameters

connectionId

The connection ID of the client sending the data.

data

Data to send.