kmfkfa.blogg.se

Wa clone web
Wa clone web







wa clone web wa clone web wa clone web

Workers may, in turn, spawn new workers, as long as those workers are hosted within the same origin as the parent page. See Functions and classes available to workers for more details.ĭata is sent between workers and the main thread via a system of messages - both sides send their messages using the postMessage() method, and respond to messages via the onmessage event handler (the message is contained within the message event's data attribute). But you can use a large number of items available under window, including WebSockets, and data storage mechanisms like IndexedDB. For example, you can't directly manipulate the DOM from inside a worker, or use some default methods and properties of the window object. You can run whatever code you like inside the worker thread, with some exceptions. Note: See The Web Workers API landing page for reference documentation on workers and additional guides.









Wa clone web