Created
August 29, 2013 03:46
-
-
Save jrburke/6374043 to your computer and use it in GitHub Desktop.
sending message to worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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