The arguments passed to the listener are the arguments passed to thePublish function after the message name.

Parameters

message(string)

The message to subscribe to

object(table)

The object the function should be called on

function(string/funcref)

The function to call

Observer:Unsubscribe(message[, object][, function])

This works exactly the same as subscribing to a message. Note that you
need to pass the same arguments to Unsubscribe as you passed toSubscribe to remove a listener for a message. That means that, if you
subscribed using Observer:Subscribe('NAME_OF_MESSAGE', funcref) you
need to unsubscribe using Observer:Unsubscribe('NAME_OF_MESSAGE',
funcref).