Data Messages

Sending and receiving data messages

Data Messages

Messages are used to send data across your application in a uniformed way.

Syntax

new Message(action, data)

Parameters

A message takes the following parameters:

Name Description Type Required
action a string determines which action or topic should be triggered string true
data an object with your data object true

Example

import { Message } from 'gluebert/message'

const createSomethingMessage = new Message(
    'add',
    {
        some : 'thing',
    },
),

References and Examples

What Where
API Reference api.gluebert.com/Message.html