Conversation Class

Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

Represents a conversation between two or more contacts.

Feature:  Messenger.Core
Namespace:  Microsoft.Live.Messenger

The JavaScript Library for Windows Live Messenger Connect is built by using the Microsoft Ajax Library. Microsoft Ajax exposes a type system that enables you to add object-oriented capabilities to your JavaScript code. To learn more about creating, instantiating, and deriving from classes, see Creating Custom Client Script by Using the Microsoft Ajax Library.

Microsoft.Live.Messenger.Conversation = function();


A conversation is a logical container for communication between two or more contacts. As a user and contact communicate with one another, text messages and typing indicators are transmitted to each participant of the conversation. Applications commonly render these communications in a conversation window which has an input area and a history of communications between the user and contact.

To create a conversation with a Contact, use the create(Contact) method of the conversations property on User. Once a Conversation has been created, a TextMessage can be sent using the sendMessage(Message) method of conversation.

The collectionChanged event of the conversations property on User is raised when conversations are added to the collection. This event should be handled to detect when the user has been invited to conversations by other contacts.

The messageReceived event is raised whenever messages from other participants of the conversation are delivered to the user. The event should be handled to detect messages that have been received.

To add more participants to a conversation, the inviteContact(Contact) method can be used.


Windows Live Messenger Connect

Supported in: 4.1

Windows Live Messenger Web Toolkit

Supported in: 3.7, 3.5, 3.1, 3.0, 2.5, 2.0, 1.0

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.6, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 4.0, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0, Opera 10.5