diff --git a/message.queue.md b/message.queue.md new file mode 100644 index 0000000..5d739b9 --- /dev/null +++ b/message.queue.md @@ -0,0 +1,27 @@ +* **Description**: Extracts the messages in the queue, and sends them delayed according to the set WPM to seem more real. +* **Subscribers**: [MessageQueueHandler](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/MessageQueueHandler) + +```json +{ + "key": "message.queue", + "intent": "control", + "scope": "zmq" +} +``` + +| Parameter | Type | Required | Description | +| ------------ |:--------:|:------------------:| --------------------------- | +| *messages* | `array` | :heavy_check_mark: | List of messages in the format specified at [message.send](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/message.send) without the key. | + +*** + +**Example**: +```json +{ + "key": "message.queue", + "messages": [ + {"message": "Hi there, fellow human!"}, + {"message": "Like many of you, I also enjoy perambulating around to observe my environment.", "wpm": 70} + ] +} +``` \ No newline at end of file