Skip to content

Instantly share code, notes, and snippets.

@devdays
Created November 30, 2014 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdays/cd31ef3e108786e47c42 to your computer and use it in GitHub Desktop.
Save devdays/cd31ef3e108786e47c42 to your computer and use it in GitHub Desktop.
Web Worker post serialized data, or JSON
postMessage({'cmd': 'init', 'timestamp': Date.now()});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment