Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Listening over HTTP

Name: Anonymous 2011-08-10 0:25

You want a browser Javascript application that executes some remote process (say, a script), and then listens for messages broadcast by that remote process. How would you build this?

Name: Anonymous 2011-08-10 0:27

With two tin cans and a rope.

Name: n3n7i 2011-08-10 0:40

javascript ActiveX (Running cmd's ? locally>>) // NetCat (listening? / Connection to host)... ???

Name: Anonymous 2011-08-10 0:41

Name: n3n7i 2011-08-10 0:44

google : NetCat as Poor Man's FTP...?

Name: Anonymous 2011-08-10 1:15

>>1

you have several options here:

1) browser client can continually poll server (done through XMLHttpRequest object or an iframe)
2) server can send a response that stays open... the connection doesn't close and the server can send updates when ready.

together these two are known as "comet"
http://en.wikipedia.org/wiki/Comet_(programming)

3) you can use websockets, however, this is relatively new and won't work in IE or older browsers

Name: Anonymous 2011-08-10 1:43

>>6
4) You can use modern interactive technologies like Adobe (tm) Flash(r)(c), and not try to shoehorn everything into the outdated HTML language.

Name: Anonymous 2011-08-10 2:13

                                      ,c="""=c,_
                                   _,j          "==c,
                              ,="`J"                 "h.
                          ,r""  c="?r                  `L
                        p"          "$                   ",
                      c"            ;F `"c.                ".
                     J'            $      `h                `h.
                    J'        ,-"j"         t                 `h
                  ,P           ,"            "                 `h.
                ,J'          ,"        c                         `h
               J'           J'          "h                        `h
              J            /              ".                       `h.
             $            ;      ;         `h                        `$.
            $            `.      ``;  `.   .`h                         `=q
           J             `.    .  `.`; `.  .`.h                           "
           F      `.     `.;    `   `.; `.  `.?
          j'     .`.     `.\    `.` `.`?`.`.`.?:
          $     `.`.`    `.j`.`.;.`.  `.3.`.`.`L`.
         .f     `.`.`.   `.?$.`.?.`.`.`.`$`.`.`$`.`
         $      `.`.`.`.`.`.$.`.`Lc.`.`.`.h.`.`$`.`.
        j'      `.`.`.`.`.`.$.`.`.h?cccci';h`.`?L.`.`.
        J       `.`.`.`.`.`$'?h.`J?,c$?`.?hP'?""?r`.`.`
       `P       `.`.L.`.`.j'`.`."=-"`.`z?$??$$F'3F`.J.`.
       `L       `.`.`h`.`.$$??`.`.`.`.$,c$$P".`.J..J`.`.
        ?       `.`.`?i,c$$?$"3$`.`.`.`.`.`.`.`.$.j'`.`.
        `h      `.`.`.$$$.$i$P".`)`.`.`.`.`.`.`.$.$.`.`.
         `r     `.`.`.;;F.`.`.`.`.`.`.`.`.`.`.`.$.$.`.P'
         ;f     `.`.`(;;h.`.`.`.`.`.`.`.`.`.`.`.$.F.`$`.`
        J"      `.`.`.t;$.`.`.`.`.`.`.`;;.`.`.`.$.$.j'`.`.`
        P        .`.`.`\9;`.`.`.`.`.,c'J?.`.`.`.$;$.J.`.`.`.
       j'        .`.`.`.?C`.`.`;;`."".`.`.`.`.`.?'`h$.`.`.`.`.
        L        .`.`.`.`.h.`./.`.`,ccc$??hJ?$F.`.`.?r`.`.`.`.`.
        $        y`.`.`.`.`?i.`.;??li??"'  .$$`.`.`.`$`.`.`.`.`.`
        `) ;    ; u.`.`.`.`.`?;.`$?;  .,;c?iP.`.`.`.`?,.`.`.`.`.`. .`
        f  t    l $.`.`.`.`.``?;.`?;;;;;;iP"`.`.`.`.`;$,`.`.`.`.`.`.`   `.
        t  ) ,q l $.`.`.`.`.`.`"h.`"??""`.`.`.`.`.`.J?J`t.`.`.`.`.`.`   `.`
         "j="  "f $.`.`.`.`.`.`.`$`.`.`.`.`.`.`.``c?;;$.`.t.`.`.`.`.    `.`
                  $.`.`.`.`.`.`.`.?h`.`.`.`.`.`.j";;;9'.`.`.?.`,P.`     `.`
                  $.`.`.`.`.`.`.`.`"?y`.`.`.`,J?;;;;;F`.`.`.J?".`.      `.`
                 .P.`.`.`.`.`.`.`.`.`.?hccd??;;;;;;;9c$r`.`j'.`.`.     .`.`
                 J`.`.`.\.`.`.`.`.`.`.`.`$;;;;;;;;;;;;;$`.`P`.`.`.     .`.`
                 $`.`.`.`?`.`.`.`.`.`.`.`.h;;;;;;;;;;;;9`.f.`.`,P     `.`.`
                 ?`.`.`.`.h.`.`.`.`.`.`.`.`h;;;;;;;;;;;9`j`.`.$'     .`.`.`
                  h.`;`.l.$.`.`.`.`.`.`.`.`.?;;;;;;;;;;$".`.`J.`    `.`.`.`
                  ?.`P`.l.F.c.`.`f`.`.`.`.`.`?;;;;;jjii$`.`.`$.`   .`.`$`.`
                   "$.`P`J`.$.`.`h`.`.`.`.`.`.F""""`   $`.`.`$.`  ?.`.`$`.`
                     J"`$.,"$.`.`?`.`.`.`.`.`j'       ,JL.`.`$.` `3.`.`?`.`
                     `=chJ" ?.`.`.?i`.`.`.`.`$$?????""   L`.`$`.`.3r`.`(l,c
                       ,P    ?`.`.`.?.`.`.`.J"           ?`.`3`.`.`h`.`P
                       J  ,c  ?i`.`.`3`.`.`J"             "i,$"=i,J"c;P
                      j' J"    `h.`.`3`.`_J"
                      $ J"       ?`.`3P""'
                     ,LJ'         h._$
                    J" .          `"            -c,
                   j'(r "??cc,,_                   h  $
                   3.P          `"""""=c,,_         ? `L       
                 zP""??cc,__               "=,_      ? ".      L
               .P           ""??cc,_           "=c_   $ ".     $       .
              ,"                   `"h,_          `=c. $ ".     h      $
            ,J'                        `"==c,        `"$h ".    $     .F
          ,"         """===cc,,,            "?c,         "??h   `L    J
         J'                                     "=c,_       `?.  ?.   P
        J'                                          "c,       `?. h  j'
      ,J??;;??$c,,_     `=cccc,                        "r        $$  $
    c"`.`.`.`;;;;;;??c,._        "=c                  .  "h.      3 .f
  J??P`.`.`.`.`.;;;;;;;;;??;"==ccy, "c                `h    "c,   3 j
,$i;;P`.`.`.`.`.`;;;;;;;;P`.`;ccc,"c `h                 ".    "h. j.$
'hC;9F`.`.`.`.`.`.;;;;;;F.`.$9?;h;;$F  ?.                 ".     "?$'
 ?h;P.`.`.`.`.`.`.;;;;;j'.`3;;???;;$?L  ?.                  "c     $
  $P`.`.`.`.`.`.`.,;;;;9`.`?h;;;;;?'`.h  ?                    "h   $
  ?;`.`.`.`.`.`.`.;;;;;9`.`.`"????`.`.?L                        "h $
   $`.`.`.`.`.`.`;;;;;;9`.`.`.`.`.`.`.``h                         `$
    L.`.`.`.`.``;;;;;;;?`.`.`.`.`.`.`.`.`$                   `,    $
    `L`.`.`.`.`;;;j;;;;;L.`.`.`.`.`.`.`.`.?.                   ",  ?.
      ?i`.`.`.;;;j;;;;;;?;`.`.`.`.`.`.`.`.`.h                   `,  L
       `?i..`,;;$;;';;;.`.h.`.`.`.`.`.`.`.`.`?c                  $   h
          "?h$??F.``;;;.`.;$c.`.`.`.`.`.`.`.`.`$L                `h  J
               $;`.`;;`.`.`;;?hy_.`.`.`.`.`.`,c$$h.               ?.j'
              .$`.`.;;`.`.`.;;;;"??$ccyyyccJ??;;;$3c               $$
              j'`.`.;.`.`.`.`.;;;;;;;;;;;;;;;;;;;;$`h              `$
             .$.`.`.`.`.`.`.`.``;;;;;;;;;;;;;;.`;;;$ "c             $
             j'.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;$. "c           $-
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;;$.  $L,        $
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;$  `h "h     .$  ,P
             F`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;;h  `h  "h   ;F. $
             C`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;L  `r   $, $ ?,f
             h`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;9r  ?   `fcF  $
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;;$   L   $   j'
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;;;$  $   $   J'
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;;;?h `cc='  J'
             $`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.,;;;;;;9.J     $
             ?`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`,;;;;;;;$$'     $
             `h.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.,;;;;;;;9"       $
              $.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.;;;;;;;;9         "h
              $.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;;;;;;;$          c????c
              j.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`.`;;;;;;;;;9        .P

Name: Anonymous 2011-08-10 3:13

>>8
sauce?

Name: Anonymous 2011-08-10 3:19

Name: Anonymous 2011-08-10 4:09

>>7 Flash is for faggots.  I hope it fully and finally dies with the new features of HTML5, and I hope Adobe goes out of business.  I revel in the fact that their Seattle branch office is right under a very tall bridge, so the employees get to come out to dead bodies in their parking lot full from suicide jumpers jumping off the bridge.

Name: Anonymous 2011-08-10 4:48

ONE WORD WEB 2.0. THREAD OVER.
read some source code you should be fine

Name: Anonymous 2011-08-10 7:34

I hope it fully and finally dies with the new features of HTML5
Yes, I hope the new features of HTML5 die too. It's a horribly bloated mess, even more so than Flash.

Name: Anonymous 2011-08-10 9:36

>>13
But it's easier to use a subset of HTML5 than it is to use a subset of Flash.

Name: Anonymous 2011-08-10 10:51

>>13

HTML5 in itself is hardly bloated. compare previous doctype syntax

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

to HTML5 doctype

<!DOCTYPE html>

perhaps you mean DOM or CSS3 is bloated.

Name: Anonymous 2011-08-10 16:33

joh joh joh /prog/ is so fresh against /prog/ reddit looks like a rat

Name: Anonymous 2011-08-10 17:13

>>15
The doctype got shorter, but they added a whole bunch of other shit.

Name: Anonymous 2011-08-10 17:14

fucking have the server generate an RSS feed of messages using one of a million different existing technologies and use whatever javascript RSS library you want to poll for new messages.

bonus points if you use requestAnimationFrame.

</thread>

Name: Anonymous 2011-08-10 19:01

>>18
request my anus

Name: Anonymous 2011-08-10 22:40

Thank you everyone for your responses. Comet is not quite there. I suppose there's a reason Flash is used so often as a middleman for this task.

Name: Anonymous 2011-08-11 1:35

>>19
gladly

Name: Anonymous 2011-08-14 14:44

Name: Anonymous 2011-08-14 16:07

I came here because of the tits.

Don't change these.
Name: Email:
Entire Thread Thread List