e0170f9dfc
*make message encoding/decoding async for use with the kernel
912150c6e4
*Add missing pushInfos
f9955c18d2
*we don't need a slave mode, just use this async fork on the slave webworkers
2f0deaf2bf
*__get should not be async
702a859661
*refactor to use a a proxy function for createChannnel and _get so that it promises are only used in slave mode
e0170f9dfc
*make message encoding/decoding async for use with the kernel
912150c6e4
*Add missing pushInfos
f9955c18d2
*we don't need a slave mode, just use this async fork on the slave webworkers
2f0deaf2bf
*__get should not be async
702a859661
*refactor to use a a proxy function for createChannnel and _get so that it promises are only used in slave mode
4aa39018d8
*Moved protomux client to its own package
35df37fdff
* Add import for b4a, create a _created Promise, replace _opened Promise with _created Promise, and add getter for ready Promise. Also, add methods to add and queue messages, and fix package.json dependencies.
876d56b25a
* Add `setupStream` to the list of imports and set up stream for `dhtInstance.swarm` when the "setup" event occurs.
94e817f045
*Update dist
92245a6c1c
*As a kernel-based protomux may be used, need to await on createChannel and addMessage
a16c2ab0c1
*Add dist
5f3e9a465f
*Initial version, extracted from kernel-swarm-client
7206624cb5
* Refactor index.ts by checking if ret[1].buffer exists before assigning it to args[0].buffer, updating the update function to decode instead of encode, sending message if the action is "send", updating onmessage to include only relevant arguments, and adding a noop function.
64ec4bb91c
*Just open the channel on creation
4712b50447
*Fix LICENSE
dc806ba98e
*Use ?. on constructor
c459f1f0a3
*Update dist
5b443ed66d
* Refactor code to open channel and await for it to be ready.
039583d77e
*Update dist
a7e0fbd190
* Refactor `util.ts` to use `existing.ready` instead of `existing._channel.ready` and replace `existing.ready` with `rpc.ready`.
bb657e5af0
* Refactor event emitter library to eventemitter2 and remove unnecessary import of protomux. Rewrite on and off methods to accept options object and change event listener parameter name for consistency. Replace call to protomux with emitting a setup event.
20e9a6e0e5
* Add EventEmitter2 library for event handling and remove EventEmitter3 library in index.ts; update package.json to include EventEmitter2 library.
fdda2befa8
* Refactor swarm setup event to include the current instance in the emitted data.
cf27a6518f
* Add call to emitAsync method to trigger "setup" event on swarm object.
952b3a0d1a
*Update deps
0d7090206c
*Remove use of protomux
3a207c107c
*Remove syncProtomux