D
D
Dmitry2018-04-09 17:00:16
Node.js
Dmitry, 2018-04-09 17:00:16

Multiple socket.io servers on one page best way?

Good afternoon ! Now in my application there are several servers for chat, for notifications and a server that processes files. All of them are physically separated into different files and hang on different ports, which causes some inconvenience when working on a client (several connections).
What would be the best solution for "co-located servers". Of course, all the code can be transferred to 1 server (file), but then the file will be very large and it will be inconvenient to work with it. names, as well as it seems to me, it will not be the best solution, because you still have to create different connections on the client. Perhaps you can suggest alternative approaches for implementing such conditions? Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-04-09
@vshvydky

namespaces, rooms? what's the problem then?
if it is required to separate the logic of different processes, what is the minus of several server sockets?
some kind of rhetorical question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question