Skip to content

DanielJDufour/worker-post-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worker-post-message

Post a Message to a Web Worker while Automatically Detecting Transferable Objects

install

npm install worker-post-message

usage

const postMessage = require("worker-post-message");

const worker = new Worker(url);

postMessage({
  debug: true,
  message: {
    text: "some random text here",
    data: new ArrayBuffer(100)
  },
  worker
});

About

A Better postMessage. Post a Message to a Web Worker while Automatically Detecting Transferable Objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published