frost-api
Version:
A wrapper for Rust Console Edition (RCE) that allows you to use the websocket and API from G-Portal.
18 lines (17 loc) • 562 B
TypeScript
import type GPortalAuth from "../auth/Auth";
import type { RustServer } from "../servers/interfaces";
import type RCEManager from "../Manager";
export default class GPortalSocket {
private _manager;
private _auth;
private _socket;
private _connectionAttempts;
private _heartbeatInterval;
private _requests;
constructor(manager: RCEManager, auth: GPortalAuth);
close(): void;
connect(resubsctibe?: boolean): void;
removeServer(server: RustServer): void;
addServer(server: RustServer): void;
private authenticate;
}