API ReferencePub/Sub
Unsubscribe
Unsubscribe from a Redis channel
Syntax
Redix.Unsubscribe(channel)Parameters
Prop
Type
Returns
Prop
Type
Example
-- Unsubscribe from channel
Redix.Unsubscribe('events:player')
-- Example with cleanup
function StopListening()
Redix.Unsubscribe('notifications:global')
print('Stopped listening to notifications')
end