V
V
vetsmen2018-03-05 17:55:38
JavaScript
vetsmen, 2018-03-05 17:55:38

How to use one socket connection in two applications?

There is a socket module:

const io = require('socket.io')(1923);
module.exports = io;

I connect it to one application - everything is ok, it works. Next to the first application is another one that needs to listen on the same socket on the same port. I connect the socket module - Error: listen EADDRINUSE :::1923
What to do?

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