Index

consolidated/stompjs/src/types.ts

ActivationState

Possible activation state

 ACTIVE
 DEACTIVATING
 INACTIVE
ReconnectionTimeMode

Possible reconnection wait time modes

 LINEAR
 EXPONENTIAL
StompSocketState

Possible states for the IStompSocket

 CONNECTING
 OPEN
 CLOSING
 CLOSED
TickerStrategy

Possible ticker strategies for outgoing heartbeat ping

 Interval
Value : interval
 Worker
Value : worker

consolidated/rx-stomp/src/rx-stomp-state.ts

RxStompState

Connection lifecycle states for RxStomp.

These states reflect the status of the underlying STOMP-over-WebSocket connection as well as the client's activation/deactivation lifecycle.

Common usage:

rxStomp.connectionState$.subscribe((state) => {
  switch (state) {
    case RxStompState.CONNECTING:
      console.log('Attempting to connect...');
      break;
    case RxStompState.OPEN:
      console.log('Connected');
      break;
    case RxStompState.CLOSING:
      console.log('Disconnecting...');
      break;
    case RxStompState.CLOSED:
      console.log('Disconnected');
      break;
  }
});

Part of @stomp/rx-stomp

 CONNECTING
 OPEN
 CLOSING
 CLOSED

results matching ""

    No results matching ""