J
J
JRazor2015-09-11 08:39:14
JavaScript
JRazor, 2015-09-11 08:39:14

How to organize Socket connections?

Hello to all colleagues.

There is a site where people communicate with each other through dialogues. I'm trying to organize this communication using Sockets. Actually a question: how multiple connection of sockets is organized? It is clear that it will not be possible to create one connection for all.

There is an idea to create a separate room for each pair of users, and this is the only thing that came to mind.

Thanks in advance for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2015-09-11
@JRazor

> It is clear that it will not be possible to create one connection for all.
Why not ? :)
If you want a separate socket for everyone, then you are limited to about 64,000 rooms.
plus a bunch of other problems.
You can make it easier: Websocket
1. make a server part that will receive data from one client and forward it to another
2. make a client part that will work with this server part
3. profit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question