Socket connections

T

Torsten

Hi,

only one simple question.
Is it possible to handle socket connections with
javascript?

TIA
Torsten
 
M

Martin Honnen

Torsten said:
Is it possible to handle socket connections with
javascript?

Well if you embed a JavaScript engine into an application or framework
exposing a socket API to script then JavaScript can handle socket
connections.
If you are asking about script embedded into HTML pages served to a
browser then those browsers usually don't expose such low-level APIs to
JavaScript though with XMLHttpRequest (in Mozilla, Netscape, Firefox,
Safari 1.2, Opera 7.60) respectively Microsoft.XMLHTTP in MSIE/Win you
are able to script HTTP requests.

XUL/XPCOM in Mozilla even exposes scoket interfaces
http://xulplanet.com/references/xpcomref/group_Network.html#Sockets
but I have never used them so I don't know whether they are usable from
script (in XUL applications or XUL pages served from chrome:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top