#socket, config

14 messages · Page 1 of 1 (latest)

weary mountain
#

Halo!,
I have a problem with socket.io, when I compile it only appears that the EventsModule dependency has been initialized, but the [WebSocketsController] event does not appear with the name of the event. I leave my screenshot of how I am declaring my modules, I suppose it is something typed I hope so.
Thanks
#socket.io #socket

#

socket, config

hasty rover
#

What do you mean by "does not appear with the name of the event"?

weary mountain
#

In photo A you can see that it initializes the module but the event does not, in it it initializes the [WebSocketsController] as in photo B, which prevents me from calling the events

hasty rover
#

What is this WebSocketsController? I don't see that in any of your screenshots? Can you provide access to your code at all?

weary mountain
#

Here I would have to show 2 things, the first if it shows where the module dependencies are initialized, the [WebSocketsController] would be missing EventsGateway subscribed to the "test" message +60ms

hasty rover
#

Ah, WebSocketsController is a nest internal class, got it. Do you havea reproduction that shows this behavior?

hasty rover
#

Great.

#

Can you provide a reproduction?

weary mountain
hasty rover
#

Do you understand what I mean by "provide a reproduction"?

weary mountain
#

mmm not

hasty rover
#

A git repo that I'm able to clone and run locally that shows the same behavior as what you're currently experiencing