Back to product page

UserDisconnected event


Fires when a user disconnects from a channel.

Syntax

  • Basic
Private Sub object_UserDisconnected(Chan, User, ErrorCode, ErrorText)
The UserDisconnected(object,Chan,User,ErrorCode,ErrorText) syntax has these parts:
objectA wodTunnel object.
ChanA Channel object. Reference to the channel that was used.
UserAn User object. Reference to the user that disconnected.
ErrorCodeAn Integer value. Specifies the error that occurred, if any.
ErrorTextA String value. Text description of the error, if any.

Remarks

This event is fired when a user leaves a channel. At this point they will be removed from the collection of all connected users, so this is last chance to inspect information about the user.

If disconnection was result of an error, the ErrorCode and ErrorText arguments will be filled with a description of the error.

Platforms

Windows