More work on lib
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user