0.0.9 • Published 2 years ago

@geut/wpc v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

wpc

Simple RPC solution for Workers, SharedWorkers and ServiceWorkers.

Build Status JavaScript Style Guide standard-readme compliant

Made by GEUT

Install

$ npm install @geut/wpc

Usage

import { WPC } from '@geut/wpc'

// main-thread.js
const rpc = new WPC(/** @type {Worker|MessagePort} */)
rpc.actions({
  ping: () => 'pong'
})

// worker-thread.js
const rpc = new WPC(self)
await rpc.call('ping') // returns pong

Issues

:bug: If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT © A GEUT project

0.0.9

2 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago