ES_PRC8/_module/nss/on_pubsub.nss
Jaysyn904 08e84b4e71 Initial upload
Initial upload.
2023-11-14 12:09:02 -05:00

15 lines
323 B
Plaintext

/// @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);
}
/// @}