Disconnection and Metadata update examples have been deleted and replaced by a more complete reliable example.
Also running this example few issues were discovered during Metadata Update on Consumer side.
When there was a Metadata update che client was closing the old connection with all streams connected and just re-recreated a new one for the stream affected during Metadata Update.
This PR should fix the issue closing the old connection just if there are no other streams connected (similarly on what we do Producer side)
This closes #175
Disconnection and Metadata update examples have been deleted and replaced by a more complete reliable example.
Also running this example few issues were discovered during Metadata Update on Consumer side.
When there was a Metadata update che client was closing the old connection with all streams connected and just re-recreated a new one for the stream affected during Metadata Update.
This PR should fix the issue closing the old connection just if there are no other streams connected (similarly on what we do Producer side)