Jump to content

Are there any client side Socket libraries for Javascript?


FalseProphet

Recommended Posts

I want to query my home server but my webserver does not allow PHP sockets. So, I am wondering if there are any Javascript libraries out there that would do the trick. I don't want to set up a server using javascript, I just simply want to use it as a client.

JavaScript doesn't have socket support, but Flash does. Flash is your middle man here, it will listen to the server and tell javascript to do something. JavaScript can also tell flash to do something and flash will then tell the server.

 

As I can tell, this is your best solution.

Socket.IO

 

There's a new spec for Websockets, but support for it is a bit lacking right now.  The Socket.IO library above provides compatibility and work arounds for browsers that do not support WebSockets natively. 

Not quite like what you'd get in say PHP or another language, but they are closer than anything else one could do with just Javascript.  I'm not sure what kind of abilities Flash has for sockets, never used it.

 

Websockets need a special type of server to listen but there are projects out there that you can use to 'websock-ify' a protocol so that you can connect to it via a websocket through a proxy program.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.