Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
At least the server has to act as a kind of broker for the clients to
enable connections between them - and this is where PHP may be involved.
Of course you can also use Node.js on the server side as well, if you
Node.js is the way to go, I think.
I have made a lot of multiplayer/chat software in different languages
serverside (ASP/VBScript, Perl, Java, and PHP).
And they all had their issues, except Java, but Java can be a hard
language to work with.
When I started developing a HTML5 multiplayergame in node.js, I was
surprised: It is very good at these kind of tasks.
The socket.io lib in nodejs makes your life easy.
With socket.io lib you can easily create custom "events" and let the
server call them at a client, and vise versa.
The same call passes complete objects too, if desired.
just my 2 cent.
"That which can be asserted without evidence, can be dismissed without
-- Christopher Hitchens
- » Pulling ad-hoc data from a database into a PHP web page
- — Previous thread in » PHP Scripting Forum