Overcode
Overcode

Reputation: 4334

Real time javascript to server connection

I know that you can use AJAX to call php/mysql, a server-side language with javascript. However, it's not fast enough to be used in realtime applications.

When I say real time I mean that the time it takes for the server to respond should be below 100ms.

Any way of doing this? AJAX calls are a bit too slow.

Libraries are okay, and if there are solutions with other languages let me know.

Upvotes: 1

Views: 2278

Answers (3)

Uffe
Uffe

Reputation: 2275

If you consider .NET I would look at XSockets http://xsockets.net - A mature framework that has been using websockets since 2009.

Regards Uffe

Upvotes: 0

Jobert Enamno
Jobert Enamno

Reputation: 4461

In ASP.NET there is SignalR which I've tested and I found amazing. Using SignalR you can create applications for real time purposes. Your client can be javascript, web application, desktop application, or even console application.

For more info see https://github.com/SignalR/SignalR

Upvotes: 0

Brad
Brad

Reputation: 163234

I recommend looking into Socket.IO with Node.js. It will use Websockets where available, and falls back nicely to other transports when needed.

Upvotes: 3

Related Questions