Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
14
_module/nss/on_pubsub.nss
Normal file
14
_module/nss/on_pubsub.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
/// @ingroup redis
|
||||
/// @brief Script to handle PubSub event
|
||||
/// @{
|
||||
/// @file on_pubsub.nss
|
||||
#include "nwnx_redis_ps"
|
||||
|
||||
void main()
|
||||
{
|
||||
struct NWNX_Redis_PubSubMessageData data = NWNX_Redis_GetPubSubMessageData();
|
||||
|
||||
WriteTimestampedLogEntry("Pubsub Event: channel=" + data.channel +
|
||||
" message=" + data.message);
|
||||
}
|
||||
/// @}
|
Reference in New Issue
Block a user