LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkConnection.SendByChannel

public bool SendByChannel(short msgType, Networking.MessageBase msg, int channelId);

Parameters

msgTypeThe message ID to send.
msgThe message to send.
channelIdThe transport layer channel to send on.

Returns

bool True if the message was sent.

Description

This sends a network message on the connection using a specific transport layer channel.