diff --git a/README.md b/README.md index 76288a4e9701b1245d5cf9816765298b3695d14f..e73239084a1823e3285c2eb5aa4fb8a939c7da42 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ const thread = new Thread('path/to/thread.js'); thread.postMessage('hello'); // listen for messages -thread.onMessage = (message) => console.log(message); +thread.onmessage = (message) => console.log(message); // stop the JS process thread.terminate();