The method below is the only way I know how to achive a "chat function". Other/better methods are welcome.
Lets say we have 4 people/clients in a room. One of them writes something, and the server sends that message back to all the other clients in the same room. This can work.
But what if there is 10000 people/clients in the same room, then we would probably have a little delay.