File

consolidated/ng2-stompjs/src/app/rx-stomp-rpc.service.ts

Description

Part of @stomp/ng2-stompjs.

Injectable version of RxStompRPC.

See guide at /guide/rx-stomp/ng2-stompjs/remote-procedure-call.html

Constructor

constructor(rxStomp: RxStompService, stompRPCConfig?: InjectableRxStompRPCConfig)

Create an instance, typically called by Angular Dependency Injection framework.

Parameters :
Name Type Optional
rxStomp RxStompService No
stompRPCConfig InjectableRxStompRPCConfig Yes
import { Injectable, Optional } from '@angular/core';

import { RxStompRPC } from '@stomp/rx-stomp';
import { RxStompService } from './rx-stomp.service';
import { InjectableRxStompRPCConfig } from './injectable-rx-stomp-rpc-config';

/**
 * Part of `@stomp/ng2-stompjs`.
 *
 * Injectable version of {@link RxStompRPC}.
 *
 * See guide at {@link /guide/rx-stomp/ng2-stompjs/remote-procedure-call.html}
 */
@Injectable()
export class RxStompRPCService extends RxStompRPC {
  /**
   * Create an instance, typically called by Angular Dependency Injection framework.
   *
   * @param rxStomp
   * @param stompRPCConfig
   */
  constructor(
    rxStomp: RxStompService,
    @Optional() stompRPCConfig?: InjectableRxStompRPCConfig
  ) {
    super(rxStomp, stompRPCConfig);
  }
}

result-matching ""

    No results matching ""