-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm wondering if there is a plugin on RabbitMQ or any configuration on the library that makes it possible not to hard code credentials in front-end?
import { RxStompConfig } from '@stomp/rx-stomp';
export const myRxStompConfig: RxStompConfig = {
// Which server?
brokerURL: 'ws://00.000.00.00:00000/ws',
// Headers
// Typical keys: login, passcode, host
connectHeaders: {
login: 'user',
passcode: 'xxxxxxxxxxx',
},
// How often to heartbeat?
// Interval in milliseconds, set to 0 to disable
heartbeatIncoming: 0, // Typical value 0 - disabled
heartbeatOutgoing: 20000, // Typical value 20000 - every 20 seconds
// Wait in milliseconds before attempting auto reconnect
// Set to 0 to disable
// Typical value 500 (500 milli seconds)
reconnectDelay: 20000,
// Will log diagnostics on console
// It can be quite verbose, not recommended in production
// Skip this key to stop logging to console
debug: (msg: string): void => {
console.log(new Date(), msg);
},
};Metadata
Metadata
Assignees
Labels
No labels