method BeepChannels.Close (ID, StatusCode)
Closes the channel.

  TypeDescription 
   ID as Integer Integer value as ID of the channel that should be closed. 
   StatusCode as Integer Integer value that holds status code that will be sent to remote side. 
 

Close method will send notification to remote peer that channel should be closed. If other peer agrees to close the channel (meaning no peer will try to send another messages over that channel) then channel is closed and ChannelClose event is fired.

Even if you issue Close method, it still is possible that remote peer refuses to close channel, in which case ChannelClose will NOT be fired.

When you issue Close method, other peer will receive ChannelCloseRequest event where he must decide whether channel should be closed or not.