vert-x3 / vertx-mqtt

Vert.x MQTT
Apache License 2.0
184 stars 86 forks source link

Instantiate the NetClient when client connection happens, when the Ne… #170

Closed vietj closed 4 years ago

vietj commented 4 years ago

…tSocket close handler is called then close the client and the connection + context to null

I'm addressing in this PR the cleanup of the socket and client when the client disconnects or is disconnected.

We can discuss in a separate issue whether we want the client to be autoclosed when the Vert.x instance or the Verticle is closed.