FalseProphet Posted November 12, 2011 Share Posted November 12, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/250998-are-there-any-client-side-socket-libraries-for-javascript/ Share on other sites More sharing options...
The Little Guy Posted November 12, 2011 Share Posted November 12, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/250998-are-there-any-client-side-socket-libraries-for-javascript/#findComment-1287671 Share on other sites More sharing options...
kicken Posted November 13, 2011 Share Posted November 13, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/250998-are-there-any-client-side-socket-libraries-for-javascript/#findComment-1287715 Share on other sites More sharing options...
The Little Guy Posted November 13, 2011 Share Posted November 13, 2011 I don't think that is true sockets, but I may be wrong. Quote Link to comment https://forums.phpfreaks.com/topic/250998-are-there-any-client-side-socket-libraries-for-javascript/#findComment-1287726 Share on other sites More sharing options...
kicken Posted November 13, 2011 Share Posted November 13, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/250998-are-there-any-client-side-socket-libraries-for-javascript/#findComment-1287753 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.