Forum Moderators: open

Message Too Old, No Replies

Simple socket application with Javascript?

Is there a way?

         

sven1977

5:58 pm on Jun 7, 2006 (gmt 0)

10+ Year Member



Is it possible to write a javascript that is able to connect to a server through a socket and then exchange data with the server? I would like to write a simple chat program for my website that connects to some server application (maybe c++).

DrDoc

6:47 pm on Jun 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could do this in Java (write a Java Applet, for instance) ... but it cannot be done with JavaScript. Technically you could accomplish it using AJAX connecting to a server on which the socket app runs ... but that would be a security issue.