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
{
9
struct
NWNX_Redis_PubSubMessageData
data =
NWNX_Redis_GetPubSubMessageData
();
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
Plugins
Redis
NWScript
on_pubsub.nss
Generated on Tue Oct 22 2024 12:19:43 for NWNX:EE by
1.8.17.
Dark version