networking
Version:
Library for typed, event-based networking between a server and clients.
9 lines (8 loc) • 316 B
TypeScript
import { Connection } from '../../server/connection';
import { Client } from '../../client/client';
import { Schematic } from '../schema/schematic';
export declare class Emitter<T extends Schematic> {
protected client: Client | Connection;
constructor(client: Client);
constructor(client: Connection);
}