Socket connections

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Torsten

    #1

    Socket connections

    Hi,

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

    TIA
    Torsten
  • Martin Honnen

    #2
    Re: Socket connections



    Torsten wrote:
    [color=blue]
    > Is it possible to handle socket connections with
    > javascript?[/color]

    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.XMLHT TP in MSIE/Win you
    are able to script HTTP requests.

    XUL/XPCOM in Mozilla even exposes scoket interfaces

    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:)


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • Hal Rosser

      #3
      Re: Socket connections

      not with client-side js
      yes with server-side (ASP)

      "Torsten" <box@tgedenk.de > wrote in message
      news:6757e774.0 411030646.3f5cf f5a@posting.goo gle.com...[color=blue]
      > Hi,
      >
      > only one simple question.
      > Is it possible to handle socket connections with
      > javascript?
      >
      > TIA
      > Torsten[/color]


      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.781 / Virus Database: 527 - Release Date: 10/21/2004


      Comment

      Working...