Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

NetworkTransport.NotifyWhenConnectionReadyForSend

public static bool NotifyWhenConnectionReadyForSend(int hostId, int connectionId, int notificationLevel, out byte error);

Parameters

hostIdHost ID.
connectionIdConnection ID.
notificationLevelDefines how many free slots in the incoming queue should be available before [GlobalConfig.ConnectionReadyForSend] callback is triggered.
errorError code.

Returns

bool Result, if false error will show error code.

Description

This method allows you to specify that notifications callbacks should be called when Unity's networking can send more messages than defined in notificationLevel.

Should be called every time when you want to be notified in this event.

Did you find this page useful? Please give it a rating: