1

I have developed a game in JavaScript, now i want to play this game on Network (Client Server). What API or anything should i use to it?

thanks!

2
  • uhm... there is definitely more information needed! ...when you have developed the game already, you don`t need anymore APIs ;) Commented Apr 4, 2011 at 8:30
  • Depends on how the game works, your only real option is AJAX but if you need fast response rather than polling you'll need to use pipelining or some such. Commented Apr 4, 2011 at 8:30

1 Answer 1

2

I recommend you to use Node.js on the server side. It´s really easy to learn & when you have JavaScript on the client-side it fits absolutely perfect!

There is a project named "socket.io" which handles WebSockets, long polling etc for you! It´s quite brilliant!

Check it out ;)

Sign up to request clarification or add additional context in comments.

8 Comments

then there in no need of using these languages like asp.net, PHP ?
no. If you have skills in JavaScript & have a server where you have root access, it´s easy to do it with node.js. It´s really good in handling thousands of connections with as less resources as possible. It´s really worth the try!!
I have Tic Tac Toe game code in JavaScript. now i want to run it over Network, means players from two different PC, one clicks and other is waiting, does this node.js suits me to do this.?
unable to run the server of it. can you please tell me details of it, how to run server and use this?
What do you mean with "the server of it"? Have you installed node.js on your server? I'll help you, but I need some more information ;)
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.