Message

Tinode. Message

Message - definition a communication message. Work in progress.

Constructor

new Message(topic_, content_)

Source:
Parameters:
Name Type Description
topic_ string name of the topic the message belongs to.
content_ string | Drafty message contant.

Methods

fromJSON()

Parse JSON into message.
Source:

toJSON()

Convert message object to {pub} packet.
Source: