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
I have created a websocket gateway (child.ts) that extends an abstract class (parent.ts). When the same event, e.g. @SubscribeMessage('test1') is in both the parent and the child, the event response is fired twice. I.e. on a single event, test1, the server will provide 2 responses: ["test1", "child"] and ["test1", "child"].
The overridden event listener should only fire once based on the method provided in the child. The response ["test1", "child"] should only be received once by the client.
My goal is to have a generic class with standardized event listeners, that can be extended and overridden by a more specific implementation as required based on different project/gateway requirements.
Environment
Nest version: 6.5.2
Typescript: 3.5.3
For Tooling issues:
- Node version: 10.15.0
- Platform: Mac
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behaviour
I have created a websocket gateway (child.ts) that extends an abstract class (parent.ts). When the same event, e.g.
@SubscribeMessage('test1')
is in both the parent and the child, the event response is fired twice. I.e. on a single event,test1
, the server will provide 2 responses:["test1", "child"]
and["test1", "child"]
.Input Code
parent.ts
child.ts
app.module.ts
main.ts
Expected Behaviour
The overridden event listener should only fire once based on the method provided in the child. The response
["test1", "child"]
should only be received once by the client.My goal is to have a generic class with standardized event listeners, that can be extended and overridden by a more specific implementation as required based on different project/gateway requirements.
Environment
The text was updated successfully, but these errors were encountered: