Skip to content

Commit

Permalink
AutoResume, resume, movePlayers system redone
Browse files Browse the repository at this point in the history
  • Loading branch information
1Lucas1apk committed Feb 24, 2024
1 parent 75446db commit 70a3b99
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 248 deletions.
2 changes: 1 addition & 1 deletion dist/src/@Datastore/database-960185850346471505.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sessionId": {
"LAVALINK": "JbRiEOHpl2LbbIQB"
"LAVALINK": "a0BhFPXAGFqbCv4k"
}
}
21 changes: 11 additions & 10 deletions dist/src/@Entities/MoonlinkNode.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="node" />
import { INode, INodeStats } from "../@Typings";
import { MoonlinkWebSocket } from "../@Services/MoonlinkWebSocket";
import { MoonlinkRestFul, MoonlinkDatabase } from "../../index";
import { MoonlinkRestFul } from "../../index";
export declare class MoonlinkNode {
private _manager;
private reconnectTimeout?;
Expand All @@ -12,32 +12,33 @@ export declare class MoonlinkNode {
host: string;
identifier?: string;
password: string;
port: number | null;
port?: number;
secure: boolean;
regions: string[] | null;
regions?: string[];
http: string;
rest: MoonlinkRestFul;
info?: Record<string, any>;
version?: string;
resume?: boolean;
resumed?: boolean;
autoResume?: boolean;
resumeTimeout?: number;
sessionId: string;
socket: MoonlinkWebSocket | null;
version: any;
state: string;
stats: INodeStats;
info: any;
stats: INodeStats | Record<string, any>;
calls: number;
db: MoonlinkDatabase;
constructor(node: INode);
get address(): string;
check(node: INode): void | never;
check(node: INode): void;
request(endpoint: string, params: any): Promise<object>;
connect(): Promise<any>;
open(): void;
private movePlayersToNextNode;
private reconnect;
protected close(code: number, reason: any): void;
protected message(data: Buffer | string): Promise<void>;
protected error(error: Error): void;
protected message(data: Buffer | string): Promise<void>;
protected handleEvent(payload: any): Promise<any>;
private movePlayers;
private get getAllPlayers();
}
Loading

0 comments on commit 70a3b99

Please sign in to comment.