pawn: state.on('change', function (data) { /* React to the change in state */ });