blob: 3096a9566cecf8d52337f32f6b2c4c0a6d11e900 [file] [log] [blame]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'chrome_api.dart';
import 'logger.dart';
void main() async {
_connectToLifelinePort();
}
void _connectToLifelinePort() {
debugLog(
'Connecting to lifeline port at ${_currentTime()}.',
prefix: 'Dart Debug Extension',
);
chrome.runtime.connect(
/*extensionId=*/ null,
ConnectInfo(name: 'keepAlive'),
);
}
String _currentTime() {
final date = DateTime.now();
return '${date.hour}:${date.minute}::${date.second}';
}