mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
Cleanup + lint/format
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
import { Settings } from "../Settings/Settings";
|
||||
import { Remote } from "./Remote";
|
||||
|
||||
import { Remote } from "./Remote";
|
||||
|
||||
let server: Remote;
|
||||
|
||||
export function newRemoteFileApiConnection() : void {
|
||||
if(server == undefined) {
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
server.startConnection();
|
||||
}
|
||||
else {
|
||||
server.stopConnection();
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
server.startConnection();
|
||||
}
|
||||
export function newRemoteFileApiConnection(): void {
|
||||
if (server == undefined) {
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
server.startConnection();
|
||||
} else {
|
||||
server.stopConnection();
|
||||
server = new Remote("localhost", Settings.RemoteFileApiPort);
|
||||
server.startConnection();
|
||||
}
|
||||
}
|
||||
|
||||
export function isRemoteFileApiConnectionLive() : boolean {
|
||||
return server.connection != undefined && server.connection.readyState == 1;
|
||||
export function isRemoteFileApiConnectionLive(): boolean {
|
||||
return server.connection != undefined && server.connection.readyState == 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user