TeaSpeak-Client/imports/shared-app/connection/ConnectionFactory.d.ts

9 lines
466 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
import { AbstractServerConnection } from "../connection/ConnectionBase";
import { ConnectionHandler } from "../ConnectionHandler";
export interface ServerConnectionFactory {
create(client: ConnectionHandler): AbstractServerConnection;
destroy(instance: AbstractServerConnection): any;
}
export declare function setServerConnectionFactory(factory: ServerConnectionFactory): void;
export declare function getServerConnectionFactory(): ServerConnectionFactory;