diff --git a/package.json b/package.json index 70adc0c..2d7dbdc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@navy.gif/wrappers", - "version": "1.3.19", + "version": "1.3.20", "description": "Various wrapper classes I use in my projects", "repository": "https://git.corgi.wtf/Navy.gif/wrappers.git", "author": "Navy.gif", diff --git a/src/MessageBroker.ts b/src/MessageBroker.ts index f59fe9c..3d6d5ae 100644 --- a/src/MessageBroker.ts +++ b/src/MessageBroker.ts @@ -23,7 +23,7 @@ type QueueDef = { } export type BrokerOptions = { - load: boolean, + load?: boolean, host: string, port: number user: string, @@ -82,7 +82,7 @@ class MessageBroker { constructor (server: IServer, options: BrokerOptions) { - this.#load = options.load; + this.#load = options.load || false; this.#hosts = options.host.split(','); this.#username = options.user; this.#password = options.pass;