@mdf.js/openc2
Version:
MMS - API - Observability
26 lines • 1.2 kB
TypeScript
/**
* Copyright 2024 Mytra Control S.L. All rights reserved.
*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
* or at https://opensource.org/licenses/MIT.
*/
import { Control, ProducerAdapter } from '@mdf.js/openc2-core';
import { AdapterOptions, SocketIOClientOptions } from '../../types';
import { SocketIOAdapter } from './SocketIOAdapter';
export declare class SocketIOProducerAdapter extends SocketIOAdapter implements ProducerAdapter {
/**
* Create a new OpenC2 adapter for Socket.IO
* @param adapterOptions - Adapter configuration options
* @param options - Socket.IO client configuration options
*/
constructor(adapterOptions: AdapterOptions, options?: SocketIOClientOptions);
/**
* Perform the publication of the message in the underlayer transport system
* @param message - message to be published
* @returns
*/
publish(message: Control.CommandMessage): Promise<Control.ResponseMessage | Control.ResponseMessage[] | void>;
/** Wrapper function for message adaptation */
private readonly subscriptionAdapter;
}
//# sourceMappingURL=SocketIOProducerAdapter.d.ts.map