TeaSpeak-Client/imports/shared-app/connection/ConnectionFactory.d.ts
2021-02-07 20:01:37 +01:00

9 lines
466 B
TypeScript

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;