Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Update network to 8.0.0, and cleanup & close broker properly #19

Merged
merged 6 commits into from
Aug 2, 2019

Conversation

harbu
Copy link
Contributor

@harbu harbu commented Jul 31, 2019

  • Update network version to 8.0.0
  • Method close() of broker now properly cleans up resources and returns Promise that is resolved when this has happened.
  • Http, Mqtt, and Ws adapters return promise from their close methods
  • Make sure to terminate/destroy existing client sockets in Ws and Mqtt adapters. Based on docs and discussion 1 and discussion 2, close doesn't terminate existing sockets but only stops the server from accepting new ones. So one must manually terminate existing ones.

@harbu harbu requested review from mirpo and removed request for mirpo July 31, 2019 09:13
@harbu harbu force-pushed the proper-closing-of-broker branch from 2f698c1 to edc1aff Compare July 31, 2019 09:26
@harbu harbu requested a review from mirpo July 31, 2019 09:26
Copy link
Contributor

@mirpo mirpo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM

src/websocket/WebsocketServer.js Outdated Show resolved Hide resolved
@harbu harbu merged commit 140d228 into master Aug 2, 2019
@harbu harbu deleted the proper-closing-of-broker branch August 2, 2019 09:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants