NWNX:EE  8193.36.12
on_pubsub.nss
Go to the documentation of this file.
1 #include "nwnx_redis_ps"
6 
7 void main()
8 {
10 
11  WriteTimestampedLogEntry("Pubsub Event: channel=" + data.channel +
12  " message=" + data.message);
13 }
NWNX_Redis_PubSubMessageData
A redis PUBSUB message.
Definition: nwnx_redis_ps.nss:8
main
void main()
Definition: on_pubsub.nss:7
NWNX_Redis_PubSubMessageData::channel
string channel
The channel.
Definition: nwnx_redis_ps.nss:9
NWNX_Redis_PubSubMessageData::message
string message
The message.
Definition: nwnx_redis_ps.nss:10
NWNX_Redis_GetPubSubMessageData
struct NWNX_Redis_PubSubMessageData NWNX_Redis_GetPubSubMessageData()
Get a PUBSUB message.
Definition: nwnx_redis_ps.nss:15