Answer the question
In order to leave comments, you need to log in
Asynchronous node.js websockets?
How to make a server on node.js asynchronous web sockets?
Or are they asynchronous out of the box? I myself came from Python and there I need to work with coroutines and async await.
Here I have no idea how to do it. Roughly speaking, you need a web socket server that can serve many connections at the same time.
There is this code:
wss.on('connection', function connection(ws) {
ws.on('message', function incoming(message) {
ws.send(message);
});
});
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