Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnTypeChange: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:45:55 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnTypeChange.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= <a class="clsStd" href="../index.htm">Channel</a>.OnTypeChanged Event = | __NOTOC__= <a class="clsStd" href="../index.htm">Channel</a>.OnTypeChanged Event = |
Revision as of 22:45, 12 August 2022
<a class="clsStd" href="../index.htm">Channel</a>.OnTypeChanged Event
Fires when the type of connection between peers changes.
VBScript Syntax
function Channel_OnTypeChanged() ' Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) End Function
JavaScript Syntax
function Channel_OnTypeChanged() { // Inspect Channel.Type for the state of the connection (Direct, Indirect, or Disconnected) }
Remarks
Your application may have features that are useful only during a direct connection. It may improve bandwidth to enable these features only when Type indicates a direct connection.