Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (15 loc) · 892 Bytes

File metadata and controls

27 lines (15 loc) · 892 Bytes

Message Queue npm (scoped) MIT License

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);