Redis callback
Callback datum for subscribed redis channel handling
This datum is used for easily assigning callbacks for SSredis to use
when a message is receievd on a channel. Define a channel on the channel
var and SSredis will automatically register subtypes of /datum/redis_callback
Vars | |
channel | Channel for this callback to listen on |
---|---|
Procs | |
on_message | Message handler callback |
Var Details
channel
Channel for this callback to listen on
Proc Details
on_message
Message handler callback
This callback is ran when a message is received on the assigned channel. Make sure you override it on subtypes or it wont work.
Arguments:
- message - The message received on the redis channel