SB-Communication
SB-Communication is a base communication low-level library meant to be used in other communication libraries. It allows promise-based communication on both ends, You must write a wrapper for it for your use-case specific stream, socket or resource though. It works in both browsers and node!
Example Communication Implementation
'use babel' const worker = 'worker.js' const communication = { workeronmessage = callback } { workerpostMessage = data } // Event-Specific bindingscommunication
API
on(event, callback) send(event, payload) dispose()}
LICENSE
This project is licensed under the terms of MIT License.