netSocket.closeHandler(new Handler<Void>() {
@Override
public void handle(Void aVoid) {
System.out.println("Socket Closed");
}
});
Use this and you get the socket close event .. I am using it and it works but with this approach you need further parsing
netSocket.handler(buffer -> {
System.out.println(buffer.toString()); //parsing etc required
});
So to avoid the parsing you can use the TCPEventBridge and use EventBus consumer approach but unfortunately vertx haven't provided any close handler for socket close with this TCPEventBusBridge approach where even I am also struggling.