web worker problem

52 views
Skip to first unread message

Mark Hahn

unread,
Nov 6, 2014, 10:11:15 PM11/6/14
to nod...@googlegroups.com
When I try to start a web worker in node I'm getting this error ...

    myWorker = new Worker('./web-worker.js');
    ReferenceError: Worker is not defined

Is there something I have to do to use a web-worker?

James Nylen

unread,
Nov 7, 2014, 2:52:10 PM11/7/14
to nod...@googlegroups.com
Node.js doesn't support web workers by default, try this library:  https://github.com/audreyt/node-webworker-threads

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/707fee11-8544-4591-ad25-3ba5d70c8249%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages