Meteor: Using a Web Worker

I want to use a web artist to play a sequence of sounds that depends on the variables of the Meteor session. Therefore, I cannot put it in a shared folder.

I mean, do I have to wrap it in a package in order to use a web employee?

+3
source share
2 answers

Meteor is based on connect, so you can put the file worker.jsoutside the application folder (make it not downloaded), and then use your self-determining router .use('/worker.js', FILEPATH).

+1
source

The folder /publicis not for scripts. It looks like a client task - put it in a folder /client(possibly inside a function Meteor.startup()).

0
source

All Articles