You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
socket.on(MESSAGE_EVENT, buffer =>
When I provide a wrong pattern.
For example, { cmd: 'sum' } is written as { cmd: 'sum1' }.
Each time you send a message, it binds once. This callback function is called N+1 times.
So is this a performance issue and a memory leak?
Or is there any way to catch the pattern error?
Expected behavior
Can be properly disposed.
Minimal reproduction of the problem with instructions
@MessagePattern({ cmd: 'sum' })
sum(data: number[]): number {
return (data || []).reduce((a, b) => a + b);
}
nest/src/microservices/client/client-tcp.ts
Lines 40 to 50 in 981104a
I'm submitting a...
Current behavior
socket.on(MESSAGE_EVENT, buffer =>
When I provide a wrong pattern.
For example,
{ cmd: 'sum' }
is written as{ cmd: 'sum1' }
.Each time you send a message, it binds once. This callback function is called N+1 times.
So is this a performance issue and a memory leak?
Or is there any way to catch the pattern error?
Expected behavior
Can be properly disposed.
Minimal reproduction of the problem with instructions
and
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: