Hierarchy

  • Message

Constructors

Properties

conversation: Conversation

The corresponding conversation

dateTime: Date

Date and time when the message was sent/received

did?: string

A decentralized identifier
For example, this identifier may resolve to credential about personal data

Raw SIP event

extraHeaders?: Header[]

Additional SIP headers to be sent with the message

id: string | number

If message is outgoing (LOCAL): An incremental, unique id (parseable as number)
If message is incoming (REMOTE): A unique id
This is because according to the standard both unique numbers or strings are allowed
However, this library ALWAYS uses numbers for outgoing messages

origin: Origin

Where the message was sent from (LOCAL or REMOTE)

promise: Promise<void>

Promise that's resolved if the message was received by the other communicating party

The message's state

tag?: any

A free to use property for internal identification and matching of messages This is helpful, if you want to use ng112-js as a PSAP and want to tag incoming messages

type: number

The ETSI TS 103 698 message type

uniqueId: number

An internally generated id that is unique among all messages within ng112-js, even across multiple conversations

Accessors

Methods

  • Allows for resending local messages that have run into an error.
    A new message is created (with new message id and unique id) and then sent via the original conversation.

    IMPORTANT: Only local messages that are in state ERROR can be re-sent.
    All other cases will result in an error.

    To avoid running into message id collisions the original message is NOT reused!

    Returns

    a new message

    Returns Message

Generated using TypeDoc