- Function
host.send(from, to, message)
is now publicly available. - Implemented support for setting a property
networkId
on a Host.
- Implemented
Host.config
, with optionsreconnectTimeout
,reconnectDelay
andreconnectDecay
. - Implemented automatic reconnection of hosts.
- Throws meaningful errors when sending a message to non-existing, deleted, or unreachable peers.
- Implemented support for publish/subscribe in the peer-to-peer network.
- Implemented
Host.get(id)
to get an existing Peer by its id. - Changed
Host.create(id)
andHost.remove(id)
to a synchronous calls (instead of returning Promises). - Fixed a bug in cleaning up after failing to connect to a non-existing host.
- Initial release: basic support connecting hosts in a peer-to-peer network and sending messages between peers.