'bye' event for instantaneous disconnect notification #6

Open
automenta opened this Issue Jun 24, 2014 · 3 comments

Projects

None yet

2 participants

@automenta
Owner

No description provided.

@automenta automenta self-assigned this Jun 24, 2014
Collaborator

is there a way to force synching and sending heartbeat instantaneously can you show me the lines.

found an a way to mark dead peer temporarily

https://github.com/shimondoodkin/nodejs-p2p-dist-components/blob/master/index.js#L231

Owner

the code here seems responsible for emitting heartbeat::
this.heartBeatTimer = setInterval(function () {
self.my_state.beatHeart()
}, this.heartbeatIntervalMS);

https://github.com/automenta/telepathine/blob/master/lib/telepathine.js#L238
which calls:
https://github.com/automenta/telepathine/blob/master/lib/peer_state.js#L139

maybe a function called beat() can be added to the peer to manually trigger it. the default interval is 2.5 seconds - this would be useful if you want to trigger a heartbeat sooner than that.

Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment