D
D
dfhkjhg2020-09-12 13:04:42
JavaScript
dfhkjhg, 2020-09-12 13:04:42

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 question

Ask a Question

731 491 924 answers to any question