Skip to content

Instantly share code, notes, and snippets.

@jrburke
Created August 29, 2013 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jrburke/6374043 to your computer and use it in GitHub Desktop.
Save jrburke/6374043 to your computer and use it in GitHub Desktop.
sending message to worker
worker.postMessage({
type: 'cronsync',
uid: undefined,
cmd: 'alarm',
args: ['accountidhere', intervaltime]
});
//example call
worker.postMessage({
type: 'cronsync',
uid: undefined,
cmd: 'alarm',
args: ['0', 20000]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment