disconnect method
Implementation
Future<bool> disconnect() async {
log.info("cast_sender.disconnect()");
_connectionChannel?.sendMessage({
'type': 'CLOSE',
});
_socket?.destroy();
_dispose();
connectionDidClose = true;
return true;
}