socketcluster icon indicating copy to clipboard operation
socketcluster copied to clipboard

Communication via local network

Open dhpanteon opened this issue 6 years ago • 2 comments

Is SocketCluster support bellow feature?
If yes then how ? If no then Is there any plans to support this feature ?

Feature: Socket cluster is communicate via internet. But if there are 4 devices (1 Server and 3 clients or, all 4 are clients and communication is between clients only.) that reside in One wifi connection (In same intranet). Then it will switch to Intranet, and communicate internally instead of circulate msg on Internet.

Benefit:

  1. If there is no internet then also communication work.
  2. Less dependence on server.
  3. Reduce the load of the server.
  4. Communication would be much faster and easy.

dhpanteon avatar Aug 06 '19 05:08 dhpanteon

SC is designed to work as a pub/sub server. P2P or WebRTC optimizations are outside the scope if the project but you can implement this on your own on top of SC.

jondubois avatar Aug 06 '19 05:08 jondubois

Hi @jondubois, have you considered the usage of webrtc as alternative to ws to benefit from UDP? Can it improve client-server performance? (In scenarios, where you want to have latest events, instead of all events)

makarov-roman avatar Sep 27 '19 13:09 makarov-roman