Sample App for the new WebWorker Extension

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
1
0

I have attached a small sample app using the new WebWorker extension. It uses a small javascript loop running on the client in a web worker and firing events back to the server.

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.

Best,

Luca

  • You must to post comments
0
0

Thanks. I’d be curios to know how you are going to use it.

  • You must to post comments
0
0

Great example Luca. Thank you, I will used in another way, but the basics here is well explain.

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json