Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WAKSharedWorkerProxy

Hierarchy

  • WAKSharedWorkerProxy

Index

Properties

Properties

port

port: Port

Use the proxy port to communicate with the share worker thread.

// Create a new SharedWorker and get the proxy worker
var myWorkerProxy = new SharedWorker( 'backend/worker.js', 'my-worker-name' );
// Get the proxy worker port for communication
var workerProxyPort = myWorkerProxy.port;
// Send a "wake up" message to the worker
workerProxyPort.postMessage( 'wake-up' );