DotMSN |

# SBMessageHandler Events

The events of the SBMessageHandler class are listed below. For a complete list of SBMessageHandler class members, see the SBMessageHandler Members topic.

#### Public Instance Events

AllContactsLeft | Fired when the owner is the only contact left. If the owner leaves too the connection is automatically closed by the server.
ContactJoined | Fired when a contact joins. In case of a conversation with two people in it this event is called with the remote contact specified in the event argument.
ContactLeft | Fired when a contact leaves the conversation.
EmoticonDefinitionReceived | Fired when a contact sends a emoticon definition.
ExceptionOccurred | Occurs when an exception is thrown while handling the incoming or outgoing messages.
ServerErrorReceived | Occurs when the MSN Switchboard Server sends us an error.
SessionClosed | Fired when the session is closed, either by the server or by the local client.
SessionEstablished | Occurs when a switchboard connection has been made and the initial handshaking commands are send. This indicates that the session is ready to invite or accept other contacts.
TextMessageReceived | Fired when a message is received from any of the other contacts in the conversation.
UserTyping | Fired when any of the other contacts is typing a message.

#### See Also

SBMessageHandler Class | XihSolutions.DotMSN Namespace