In the project, look in the FindPrimes.js file and open Page1 in design mode to see how the Wisej.Ext.WebWorker component is used. It’s quite easy: just drop the WebWorker component (you can use more than 1 – each component is a web worker thread in the browser) and attach the js to execute.
The client can post messages back to the server and the server can send messages to the web worker or terminate it at any time. It’s super cool. I’m not sure if it’s useful though… In any case, if someone can come up with a useful use case scenario for web workers I’d be interested in knowing what it is.