@smallstoneapps/message-queue
v2.4.2
Published
A Pebble package that handles queuing of outgoing messages and allows for easy group based routing of incoming messages.
Downloads
5
Readme
Message Queue
A Pebble package that handles queuing of outgoing messages and allows for easy group based routing of incoming messages.
Installation
You must be using Pebble SDK 3.12 or newer to use this library.
To install the package to your app, use the pebble tool:
pebble package install @smallstoneapps/message-queue
Usage
Setup the message queue
mqueue_init();
Add a message to be sent.
mqueue_add("GROUP", "OPERATION", "DATA");
Register a callback function for incoming messages of a particular group.
mqueue_register_handler("GROUP", msg_handler);