gamesocket.io
Version:
Simple event-oriented API for uWebSocket.js
22 lines (21 loc) • 857 B
TypeScript
import type { IDataEscort } from './DataEscort/DataEscort.js'
import type { escortID, eventName } from '../io.js'
export declare type finalData = string | number | boolean | dataObject
export declare type dataObject = {
[key: string]: finalData
}
export declare abstract class IDataManager {
static spawn(event: eventName, data?: finalData): IDataEscort
static get(id: escortID): IDataEscort | undefined
static drop(id: escortID): boolean
static drop(escort: IDataEscort): boolean
}
export declare class DataManager implements IDataManager {
private static _escorts
static spawn(event: eventName, data?: finalData): IDataEscort
static get(id: string): IDataEscort | undefined
static drop(entity: string | IDataEscort): boolean
private static createID
static decode(buffer: ArrayBuffer): any
}
//# sourceMappingURL=DataManager.d.ts.map