getMessage
takes a Redis connection, a string queue, and a boolean specifying
whether the serialization was JSON or not. It then gets the message from the queue,
parses it, and returns the parsed message.
1 | getMessage(conn, queue, useJSON = F, blocking = F)
|
conn |
An open redux hiredis connection. |
queue |
A string giving the name of the queue to get the message from. |
useJSON |
Flag specifying whether messages are in JSON format. Defaults to false. |
blocking |
Flag specifying whether a blocking pop or regular pop will be performed when getting a message from the queue. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.