TsgcWSPClient_Presence › Events

TsgcWSPClient_Presence Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
OnConnectFires when the underlying WebSocket transport has connected to the server.
OnDisconnectFires after the WebSocket transport has been disconnected.
OnErrorFires when the transport reports a protocol-level error string.
OnExceptionFires when an unhandled exception is raised while processing a Presence message.
OnSessionFires when the server returns the session id assigned to this member.
OnRawMessageFires for every incoming frame before Presence parsing; set Handled to skip default handling.

Members

NameDescription
OnNewMemberFires when a new member joins the server.
OnRemoveMemberFires when an existing member disconnects from the server.
OnNewChannelMemberFires when a member subscribes to a channel.
OnRemoveChannelMemberFires when a member unsubscribes from a channel.
OnGetMembersFires with the list of members returned by a GetMembers request.
OnErrorMemberChannelFires when a subscription or member-related operation fails on the server.

Publishing

NameDescription
OnPublishMsgFires when a Publish message is received on a channel.
OnErrorPublishMsgFires when the server rejects a publication with an error.

Invitations

NameDescription
OnChannelInvitationFires when this member is invited to a channel; set Accept to join.
OnChannelInvitationResponseFires on the inviter with the response returned by the invited member.

All Events (alphabetical)

NameDescription
OnChannelInvitationFires when this member is invited to a channel; set Accept to join.
OnChannelInvitationResponseFires on the inviter with the response returned by the invited member.
OnConnectFires when the underlying WebSocket transport has connected to the server.
OnDisconnectFires after the WebSocket transport has been disconnected.
OnErrorFires when the transport reports a protocol-level error string.
OnErrorMemberChannelFires when a subscription or member-related operation fails on the server.
OnErrorPublishMsgFires when the server rejects a publication with an error.
OnExceptionFires when an unhandled exception is raised while processing a Presence message.
OnGetMembersFires with the list of members returned by a GetMembers request.
OnNewChannelMemberFires when a member subscribes to a channel.
OnNewMemberFires when a new member joins the server.
OnPublishMsgFires when a Publish message is received on a channel.
OnRawMessageFires for every incoming frame before Presence parsing; set Handled to skip default handling.
OnRemoveChannelMemberFires when a member unsubscribes from a channel.
OnRemoveMemberFires when an existing member disconnects from the server.
OnSessionFires when the server returns the session id assigned to this member.