'How does a SERVER send a message so that the message is displayed to every client?

I know that websockets can make this happen. But how does a server fundamentally show a message to every client? Wouldn't the message need to be in a database and then posted from there to the client?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source