AutoRemote Message received as State (with Event Behavior checked) vs Event

Discussion in 'AutoApps' started by Idan Sl, Jan 2, 2020.

  1. Idan Sl

    Idan Sl New Member

    Joined:
    Nov 24, 2019
    Messages:
    1
    Likes Received:
    0
    Hi,

    I was wondering if there is any difference in AutoRemote between receiving a message as a State with Event Behavior checked vs receiving a message as an Event.
    Is there any reason to favor the 1st over the 2nd?
    Why does "Event Behavior" even exist if they are the same (which sounds like they are)?

    Thanks.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Because in the old days there were no plugin events :) Thus I had to create a state that behaved like an event. Nowadays you should avoid the state and just use the event!
     
: AutoRemove

Share This Page