API

SIP.Message

SIP.Message represents an instant message using the SIP MESSAGE request. By default, the message is treated as plain text. However, any valid content type may be specified.

Construction

The Message constructor is intended for internal use only. Instead, outbound Messages are created through the SIP.UA.message method. Inbound Messages are obtained via the SIP.UA message event callback.

Examples

// Sends a new message
myUA.message('alice@example.com', 'Hello Alice!');
// When receiving a message, prints it out
myUA.on('message', function (message) {
  console.log(message.body);
});

Instance Attributes

SIP.Message inherits its instance attributes from SIP.ClientContext or SIP.ServerContext.

Instance Methods

SIP.Message inherits its instance methods from SIP.ClientContext or SIP.ServerContext.

Events

SIP.Message inherits its events from SIP.ClientContext or SIP.ServerContext.