Skip to content

Instantly share code, notes, and snippets.

View jesmin-n's full-sized avatar

Jesmin Ngo jesmin-n

  • United States
View GitHub Profile
Handler.bind("/time", Object.create(Behavior.prototype, {
onInvoke: { value:
function(handler, message) {
application.distribute( "onTimeUpdated" );
handler.invoke( new Message( "/delay?duration=60000" ) ); //will check time again after 1 minute
},
},
}));
Handler.bind("/delay", Object.create(Behavior.prototype, {
onInvoke: { value: