Trying to write a chat, like on facebook, I wondered if two clients can connect to the same PHP-document, or, if 1 PHP-document could communicate with 2 clients at the same time?
(I just took PHP as an example, I don't mind using another server-side scripting language, although PHP is the only serverside scripting language I can program in).
With communicating I mean receiving input AND send output, via AJAX or something like HTML5 SSE.
Is this possible?
How is this called (for googling)?
Thanks.