Skip to content

this adapter doesn't work with dynamic namespace #7

@bahmanbs

Description

@bahmanbs

when using dynamic namespaces (using regex), amqp adapter throws an error in line 167 of index.ts

this.publishChannel.assertExchange(this.exchangeName, 'direct', { autoDelete: true, durable: false });

it says can access assertExchange of undfined

After checking the code a bit, I realized that when connecting the client to the socket server with different namespaces, the client tries to communicate with the / namespace and this causes an error. In case I did not intend to connect to the / namespace. The problem was solved by placing the two methods createRoomExchangeAndQueue and createRoomListener inside the try/catch block

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions