Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.