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?
WebSocket
is initiated by the client, and once initiated both sides are able to send data to each other.