@stomp/rx-stomp
Version:
RxJS STOMP client for Javascript and Typescript
39 lines (38 loc) • 1.48 kB
TypeScript
import { Observable } from 'rxjs';
import { IMessage, IPublishParams } from '@stomp/stompjs';
import { RxStomp } from './rx-stomp.js';
import { RxStompRPCConfig } from './rx-stomp-rpc-config.js';
/**
* An implementation of Remote Procedure Call (RPC) using messaging.
*
* Please see the [guide](/guide/rx-stomp/ng2-stompjs/remote-procedure-call.html) for details.
*
* Part of `@stomp/rx-stomp`
*/
export declare class RxStompRPC {
private rxStomp;
private stompRPCConfig?;
private _replyQueueName;
private _setupReplyQueue;
private _repliesObservable;
private _customReplyQueue;
private _dummySubscription;
/**
* Create an instance, see the [guide](/guide/rx-stomp/ng2-stompjs/remote-procedure-call.html) for details.
*/
constructor(rxStomp: RxStomp, stompRPCConfig?: RxStompRPCConfig);
/**
* Make an RPC request.
* See the [guide](/guide/rx-stomp/ng2-stompjs/remote-procedure-call.html) for example.
*
* It is a simple wrapper around [RxStompRPC#stream]{@link RxStompRPC#stream}.
*/
rpc(params: IPublishParams): Observable<IMessage>;
/**
* Make an RPC stream request. See the [guide](/guide/rx-stomp/ng2-stompjs/remote-procedure-call.html).
*
* Note: This call internally takes care of generating a correlation id,
* however, if `correlation-id` is passed via `headers`, that will be used instead.
*/
stream(params: IPublishParams): Observable<IMessage>;
}