S
S
Sergey Grigorov2018-04-17 16:02:24
Node.js
Sergey Grigorov, 2018-04-17 16:02:24

How to make dynamic Socket.IO room selection?

Hello.
How can you implement something like a room system?
At the moment there is a similar idea that throws errors in the console:

app.use(express.static(path.join(__dirname, 'public'))+':roomID', function(request, response){
  const roomID = request.params.roomID;
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Grigorov, 2018-04-17
@Serjio-Grig

I beg your pardon. Doesn't throw errors, just CANNOT GET.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question