Home Reference Source
import {InstantMessage} from '@quobis/sippojs'
public class | source

InstantMessage

Example:

Creating an InstantMessage
let im = session.createInstantMessage(recipient, text);
im.send().then(() => {
   console.warn("Message received by the server");
})

Method Summary

Public Methods
public

Get the message

public

Get the message' receiver

public

Get the message's composer

public

Sends the message

Public Methods

public getMessage(): String source

Get the message

Return:

String

message

public getReceiver(): String source

Get the message' receiver

Return:

String

receiver

public getSender(): String source

Get the message's composer

Return:

String

composer

public send(): Promise source

Sends the message

Return:

Promise