Last active
April 21, 2023 07:35
-
-
Save lonekorean/4d39b2a1013f574e3ede to your computer and use it in GitHub Desktop.
Simple web worker, worker file
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
self.addEventListener('message', receiveMessage); | |
function receiveMessage(e) { | |
self.postMessage('Sup, ' + e.data + '?'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment