0

assuming you have a server and a client, the server is able to perform operations, the client is always waiting for the server to perform operations. The client knows the address of the server, the server does not. How can the client always keep in touch with the server in order to be informed whenever the server performs operations?

6
  • What you search for is called WebSocket
    – Avraham
    Commented Mar 14, 2019 at 17:35
  • I have documented myself on the webSockets, but communication in this area is between the client's browser and the server, I would like to implement direct communication, door to door, where is the client that initiates communication with the server
    – Anas
    Commented Mar 14, 2019 at 17:39
  • I don't understand you: a WebSocket is initiated by the client, and once initiated both sides are able to send data to each other.
    – Avraham
    Commented Mar 14, 2019 at 17:44
  • Exactly, and this is done via a web page chat, I would rather do it without a web page
    – Anas
    Commented Mar 14, 2019 at 17:57
  • There are WebSocket clients for non browser envs, like ws for node.js
    – Avraham
    Commented Mar 14, 2019 at 18:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.