Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static _mapStompState(st) {
if (st === RxStompState.CONNECTING) {
return StompState.TRYING;
}
if (st === RxStompState.OPEN) {
return StompState.CONNECTED;
}
if (st === RxStompState.CLOSING) {
return StompState.DISCONNECTING;
}
if (st === RxStompState.CLOSED) {
return StompState.CLOSED;
}
}
/**
private static _mapStompState(st: RxStompState): StompState {
if (st === RxStompState.CONNECTING) {
return StompState.TRYING;
}
if (st === RxStompState.OPEN) {
return StompState.CONNECTED;
}
if (st === RxStompState.CLOSING) {
return StompState.DISCONNECTING;
}
if (st === RxStompState.CLOSED) {
return StompState.CLOSED;
}
}
function (st) {
if (st === RxStompState.CONNECTING) {
return StompState.TRYING;
}
if (st === RxStompState.OPEN) {
return StompState.CONNECTED;
}
if (st === RxStompState.CLOSING) {
return StompState.DISCONNECTING;
}
if (st === RxStompState.CLOSED) {
return StompState.CLOSED;
}
};
Object.defineProperty(StompRService.prototype, "connectObservable", {
function (st) {
if (st === RxStompState.CONNECTING) {
return StompState.TRYING;
}
if (st === RxStompState.OPEN) {
return StompState.CONNECTED;
}
if (st === RxStompState.CLOSING) {
return StompState.DISCONNECTING;
}
if (st === RxStompState.CLOSED) {
return StompState.CLOSED;
}
};
Object.defineProperty(StompRService.prototype, "connectObservable", {
static _mapStompState(st) {
if (st === RxStompState.CONNECTING) {
return StompState.TRYING;
}
if (st === RxStompState.OPEN) {
return StompState.CONNECTED;
}
if (st === RxStompState.CLOSING) {
return StompState.DISCONNECTING;
}
if (st === RxStompState.CLOSED) {
return StompState.CLOSED;
}
}
/**