import {RxStompConfig} from '@stomp/rx-stomp';
import {environment} from "../../environments/environment";

export const myRxStompConfig: RxStompConfig = {
  brokerURL: environment.wsUrl,

  heartbeatIncoming: 0,
  heartbeatOutgoing: 20000,

  reconnectDelay: 10_000,

  debug: (msg: string): void => {
    if (!environment.production) {
      console.log(new Date(), msg);
    }
  },
};
