ifandelse / machina.js

js ex machina - finite state machines in JavaScript
http://machina-js.org/
Other
1.93k stars 147 forks source link

Clarity around BehavioralFSM and events #166

Open dynajoe opened 5 years ago

dynajoe commented 5 years ago

I've been using machina.FSM and am trying to switch to BehavioralFSM. I used to new up the original fsm and subscribe to events on the instance returned from the new operator. My understanding about the BehavioralFSM is that it's just managing the "client" object. How should I subscribe to events for that specific client instance?