A tinny(~3kb) utility that can simplify cross window(iframes, workers, same origin windows) and electron main / renderer process communications
MIT License
Add parameter heartbeatTimeout
to the constructor
of each class
heartbeatTimeout
is timeout(milliseconds) for waiting heartbeat message, default 500ms
emit
method will catch a no handler errorPublished by oe 2 months ago
New features released:
duplex-message'
now adds BroadcastMessageHub
which supports communication via BroadcastChannel
.on
now support multiple listeners on a single messageprocess.env.NODE_ENV
is any value other than production
, and debug code will be stripped when process.env.NODE_ENV
is production
with a bundlerPublished by oe over 3 years ago
timeout
is not needed when using StorageMessageHubsetConfig({debug: true})
shared
instance, can be accessed via these constructors.Published by oe over 3 years ago
Duplex-message official released! It's a replacement for @evecalm/message-hub
Published by oe almost 4 years ago