Releases: oe/duplex-message
Releases · oe/duplex-message
v2.1.0
v2.0.1
Add parameter heartbeatTimeout to the constructor of each class
heartbeatTimeout is timeout(milliseconds) for waiting heartbeat message, default 500ms
- A heartbeat message will be sent to peer immediately when a request message is received
and there is at least one handler for it. Or theemitmethod will catch a no handler error
It has nothing to do with the time of handler execution, there is no timeout
for handler execution - Normally, a heartbeat message will be sent to peer in less then 10 ms,
but you may still need to set a longer timeout if browser is heavy loaded
and the native apis are slow
v2.0.0
New features released:
duplex-message'now addsBroadcastMessageHubwhich supports communication viaBroadcastChannel.onnow support multiple listeners on a single message- debug logging is automatically enabled when
process.env.NODE_ENVis any value other thanproduction, and debug code will be stripped whenprocess.env.NODE_ENVisproductionwith a bundler
v1.1.0
- all kinds of message hub are now supporting multi peers
timeoutis not needed when using StorageMessageHub- add debug config, can be configured via
setConfig({debug: true}) - add
sharedinstance, can be accessed via these constructors.
v1.0
Duplex-message official released! It's a replacement for @evecalm/message-hub
fix readme typos
v1.0.19 fix: typos in readme