Skip to Content
Due to the increasing popularity of Scripting Languages here on SDN, I wanted to share with everyone an interesting little project I came across recently this is one that I rank up there as “cool”.  This is a Socket connection made using JavaScript.

I could not find a single way to have real sockets in Javascript. Google told me that there probably is no solution except embeding a java applet or an active-x component! So I thought why not using a little .swf file as a bridge from javascript to the socket functions of flash! You can see the result here: http://dev.dschini.org/socketjs/ This works pretty neat, fast and stable! The client connects to a patched (”
”) Unreal IRCD. Except connecting and joining a channel there is no much functionality, but it works pretty good! If you are interested please give me some feedback!

Manfred’s Diary With such an increasing repository available of components, applications and libraries to use I personally think that we are at a crossroads of technology, a “Dawn of the Scripter” so to speak is coming and the stars in the heavens are all aligned and I think it’s time to step forward.  Now the problem of course is who’s who, what’s what and where does everything go. SDN has given us a home so we should use it, for those of you going to TechEd please sign up and register your sessions for the SDN Day at TechEd’06!  Being in the unique position I am here on SDN, I’ve got the ability to not only support what I am passioniate about but also to participate in it, “Scripting in a Box v0.1” and the one or two examples inside are the extent of that participation to date, but I’m working on more and I hope to maybe present myself at the SDN Day at TechEd’06. So if you see a session from me make sure you vote and attend 🙂

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Anonymous
    Scripting is great, but any developer should keep in mind that the right tool for the job should always be used. If you need sockets you most likely don’t need to use JavaScript (especially not inside a browser). A security-consious browser would block this kind of behaviour immediatly (though I assume none of the current browsers will :-)).
    JavaScript’s great — I love it and took it to its limit when I worked with it (did someone say object-oriented JS, with inheritence? :-)), but just as well as you won’t use Perl to create an Office application, you should keep JS in its “natural” place.
    (0) 
    1. Community User
      This is of course always true, the right tool for the right job. No one is trying to push anyone here 🙂 just letting you know about something I came across – of which since posting the blog I’ve actually received 3 mails thanking me – 1 actually told me it solved a “productive problem” and the rest said it was just what they were looking for to use in a prototype they working on.
      (0) 
      1. Alvaro Tejada Galindo
        I’m not a big fan of JavaScript and haven’t work that much this sockets…But this project look really good…I like the flash integration, and the source code is pretty easy to follow -:)

        Another point for Scripting Languages -;)

        Greetings,

        Blag.

        (0) 
    2. Anton Wenzelhuemer
      hmmm,

      if you read the citation, the guy obviously wanted to create a browser based IRC client, probably without reloading the whole window whenever a new message is issued.

      imho, this is a reasonable use case, thoug I share your concerns regarding possible security issues.

      my 0.02,
      anton

      (0) 
    3. Anton Wenzelhuemer
      hmmm,

      if you read the citation, the guy obviously wanted to create a browser based IRC client, probably without reloading the whole window whenever a new message is issued.

      imho, this is a reasonable use case, thoug I share your concerns regarding possible security issues.

      my 0.02,
      anton

      (0) 

Leave a Reply