on-emit

An emit event is triggered when a change is emitted using the emit(..) function on a room.

The event contains the room Id, a change name and arguments (args) as an array. If no arguments are attached to the event, args will be an empty array.

Example on-emit event in JSON format:

{
    "id": 123,
    "event": "my-event",
    "args": []
}

When using a thing in the argument(s), do not forget to check the deep value. (see the emit(..) function)