2022-06-24 18:42:39 +00:00
|
|
|
import {updateConnectionStatus} from "../interface/game/connection.js"
|
2022-06-20 00:18:47 +00:00
|
|
|
|
|
|
|
var SERVER_CONNECTION = "disconnected"
|
|
|
|
|
|
|
|
export function get() {
|
|
|
|
return SERVER_CONNECTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function connected() {
|
|
|
|
SERVER_CONNECTION = "connected";
|
|
|
|
updateConnectionStatus(SERVER_CONNECTION);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function disconnected() {
|
|
|
|
SERVER_CONNECTION = "disconnected";
|
|
|
|
updateConnectionStatus(SERVER_CONNECTION);
|
|
|
|
}
|