Home Manual Reference Source
import {Messaging} from 'zetapush-js/src/mapping/services.js'
public class | source

Messaging

Extends:

src/mapping/core.js~Service → Messaging

Messaging service

Simple and flexible user-to-user or user-to-group messaging service.

Static Member Summary

Static Public Members
public static get

Get default deployment id associated to Messaging service

Method Summary

Public Methods
public

send(objectPattern: {"target": *, "channel": *, "data": *}): *

Sends a message to a target

Static Public Members

public static get DEFAULT_DEPLOYMENT_ID: string: string source

Get default deployment id associated to Messaging service

Return:

string

Public Methods

public send(objectPattern: {"target": *, "channel": *, "data": *}): * source

Sends a message to a target

Sends the given message to the specified target on the given (optional) channel. The administratively given default channel name is used when none is provided in the message itself.

Params:

NameTypeAttributeDescription
objectPattern {"target": *, "channel": *, "data": *}
  • default: {"target":null,"channel":null,"data":null}

Return:

*