Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnTypeChange
<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.