UNPKG

@senspark/sfs2x

Version:

utility library for smartfox server

28 lines (20 loc) 701 B
import { EventDispatcher } from "./EventDispatcher"; import { RequestHandler } from "./RequestHandler"; export interface Bridge { /** Gets the associated event dispatcher. */ eventDispatcher: EventDispatcher; /** Gets the associated request handler. */ requestHandler: RequestHandler; /** Gets the current user ID. */ userId: string; /** Checks whether the client is connected. */ isConnected: boolean; /** Checks whether the user is logged in. */ isLoggedIn: boolean; connect(): void; disconnect(): void; logIn(userId: string, zone: string, version: number): void; logOut(): void; /** Destroys this bridge. */ destroy(): void; }