You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/session/instance.ts

13 lines
272 B
TypeScript

import { MessageQueue, MessageQueueInterface } from './sending/';
let messageQueue: MessageQueue;
function getMessageQueue(): MessageQueueInterface {
if (!messageQueue) {
messageQueue = new MessageQueue();
}
return messageQueue;
}
export { getMessageQueue };