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
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
assertExchangeofundfinedAfter 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 methodscreateRoomExchangeAndQueueandcreateRoomListenerinside thetry/catchblock