event ChannelClose (Channel, ErrorCode, ErrorText)
Fires when channel is closed.

  TypeDescription 
   Channel as IBeepChannel Reference to the channel that was closed. 
   ErrorCode as Long Long integer that holds error code, if error occurred. 
   ErrorText as String String expression of the error, if occurred. 
 

ChannelClose event is fired when some channel was closed by both peers. You can no longer send any new messages over closed channels.

If error occurred, ErrorCode will contain number different than 0 or 200 (both 0 and 200 are OK by RFC specification).