Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach((done) => {
rxStomp = new RxStomp();
const rxStompConfig: RxStompConfig = (Object as any).assign({}, defaultRxStompConfig);
// Identify log messages on the server side
rxStompConfig.debug = (str: string) => {
console.log('RPC Server: ', new Date(), str);
};
rxStomp.configure(rxStompConfig);
rxStomp.activate();
rxStomp.connected$.pipe(take(1)).subscribe(() => {
const receiptId = UUID.UUID();
rxStomp.watch(myServiceEndPoint, {receipt: receiptId}).subscribe((message: IMessage) => {
const replyTo = message.headers['reply-to'];
const correlationId = message.headers['correlation-id'];
const incomingMessage = message.body;