Menu
if I want my server to communicate with two different clients at once and pass information between them, how do I get the two different sessions to share data without writing a file? in other words, if i have a replica of the classic Atari tank combat game and there are two players…
Player 1 (where session_id = ‘foo’)
Player 2 (where session_id = ‘bar’)
and they both access the socket i’ve created on port 1234 with my file ‘socket.php’, how do I let Player 1 know that Player 2 is shooting at him? Do I need to consume 2 ports for this or is 1 sufficient?