Answer the question
In order to leave comments, you need to log in
How to send a message to ws from a route?
There is an app.js file that contains all connections to routes, to the database, creating a socket, and so on.
And let's say there is a route
app.use('/auth', authRoutes)
How to access sockets from it and send a message
I hope I explained it clearly
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question