Version: 2020.2
LanguageEnglish
  • C#

ChannelClient.Send

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public void Send(string data);
public void Send(byte[] data);
public static void Send(int connectionId, byte[] data);

Parameters

data Data to send.
connectionId The connection ID of the client sending the data.

Description

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.