Skip to content

Commit

Permalink
reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 7, 2024
1 parent 7c09bbb commit 67750b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/helpers/nats/ConnectNats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export default class ConnectNats {

const consumerName = this._subjects.systemPrivate + ':' + this._userId;
const consumer = await this._js.consumers.get(this._roomId, consumerName);
const sub = await consumer.consume({ max_messages: 1 });
const sub = await consumer.consume();

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Expand All @@ -415,7 +415,7 @@ export default class ConnectNats {

const consumerName = this._subjects.systemPublic + ':' + this._userId;
const consumer = await this._js.consumers.get(this._roomId, consumerName);
const sub = await consumer.consume({ max_messages: 1 });
const sub = await consumer.consume();

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Expand All @@ -438,7 +438,7 @@ export default class ConnectNats {

const consumerName = this._subjects.chat + ':' + this._userId;
const consumer = await this._js.consumers.get(this._roomId, consumerName);
const sub = await consumer.consume({ max_messages: 1 });
const sub = await consumer.consume();

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Expand All @@ -461,7 +461,7 @@ export default class ConnectNats {

const consumerName = this._subjects.whiteboard + ':' + this._userId;
const consumer = await this._js.consumers.get(this._roomId, consumerName);
const sub = await consumer.consume({ max_messages: 1 });
const sub = await consumer.consume();

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Expand Down Expand Up @@ -496,7 +496,7 @@ export default class ConnectNats {

const consumerName = this._subjects.dataChannel + ':' + this._userId;
const consumer = await this._js.consumers.get(this._roomId, consumerName);
const sub = await consumer.consume({ max_messages: 1 });
const sub = await consumer.consume();

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
Expand Down

0 comments on commit 67750b8

Please sign in to comment.