import { ServerController } from '../ServerController'; export abstract class ServerAdapter { protected controller?: ServerController; public setServerController(controller: ServerController) { if (this.controller) { throw new Error('You only need to use the adapter once.'); } this.controller = controller; } abstract close(): Promise; }