Added asynchronous connection for stats socket 52/31352/5
authorVladimir Lavor <vlavor@cisco.com>
Thu, 18 Feb 2021 15:05:30 +0000 (16:05 +0100)
committerVladimir Lavor <vlavor@cisco.com>
Tue, 23 Feb 2021 12:28:47 +0000 (13:28 +0100)
The stats socket now allows an option to connect asynchronously in
the same manner as the api socket  connection. New method
AsyncConnectStats returns a channel where notificaitons
of type ConnectionEvent will be sent.

Fixed the stats reconnect procedure which sometimes failed to re-eneable
the connection.

Change-Id: I0bdb19f0d57e3a1ea259b8b1ba0a5e5fa49a09db
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>

No differences found