I        This condition is triggered when a peer leaves a channel that your client is on.


The channel and peer are auto-selected, so you can read their details using the Selected channel expressions, or the Selected channel > Selected peer expressions.

For more details, read the "Maintain a peer list" example.


From the start of this event, the Selected channel > Number of peers expression will exclude the disconnecting peer. The peer loops will also exclude the disconnecting peer.

However, during this event you can still select other peers and re-select the disconnecting one; but after the event is over, the peer's details will be discarded.


Since the peer is leaving, you can no longer send or blast peer/channel messages to them via the channel(s) they are leaving.

Attempting to do so during the leave event will fail, silently on Relay, and with a "peer is read-only" error on Blue.


If the peer is disconnecting from the server itself and you share multiple channels with them, you will receive an On Peer Disconnect event for every shared channel.