More work on lib

This commit is contained in:
Daniel Kluge
2023-10-20 10:14:53 +02:00
parent 99fd86ff95
commit 9836905de4
5 changed files with 80 additions and 34 deletions
+2 -1
View File
@@ -6,13 +6,14 @@ export type OnResponseCallback = (response: any) => void
export default abstract class InterfaceConnectionObject<ConfigInterface> {
protected abstract readonly name: string;
protected abstract readonly uriProtocol: string[]|string;
protected abstract readonly connectionType: ConnectionType;
protected abstract readonly supportsSubscriptions: boolean;
protected config: ConfigInterface;
private onResponseCallback: OnResponseCallback;
constructor(config: ConfigInterface, onResponseCallback: OnResponseCallback) {
public constructor(config: ConfigInterface, onResponseCallback: OnResponseCallback) {
this.config = config;
this.onResponseCallback = onResponseCallback;
}