Interface SteamClientEvents

Steam client events

interface SteamClientEvents {
    ready: (() => void);
    disconnected: ((reason?) => void);
    error: ((error) => void);
    serverConnectionStatus: ((status) => void);
}

Properties

ready: (() => void)

Type declaration

    • (): void
    • Returns void

disconnected: ((reason?) => void)

Type declaration

    • (reason?): void
    • Parameters

      • Optional reason: any

      Returns void

error: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: {
            type: string;
            error: Error;
        }
        • type: string
        • error: Error

      Returns void

serverConnectionStatus: ((status) => void)

Type declaration

    • (status): void
    • Parameters

      • status: any

      Returns void