Re: POE HTTP server with WebSocket channel

[email protected] (Guido Brugnara) Thu, 12 Dec 2013 09:23:54 +0100
Newsgroups perl.poe
Organization LEADER.IT
Message-ID <[email protected]>
--------------080407020302010106000208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Il 12/12/2013 08:33, Konstantin Yakunin ha scritto:
> Hello,
>
> Try Plack::Builder
>
> use Plack::Builder;
>
> builder {
>
> }
>

I like! Thanks.

I tried to install POEx-Role-PSGIServer from CPAN but points out the 
lack of the package POEx-Role-SessionInstantiation [1]
Here ( https://rt.cpan.org/Public/Bug/Display.html?id=69745 ) the author 
of [1] warns you deleted the package from CPAN because it is no longer 
compatible with the latest versions of Moose :-(
So, The POEx-... packages are all considered experimental/broken?
What could I use as a PSGI server, along with POE in a single task?
____
gdo

>
>
> 2013/12/11 Guido Brugnara <[email protected] <mailto:[email protected]>>
>
>     ===CUT===
>     The target is to listen on the same port: http://myapp:8000/.....
>      and for websocket ws://myapp:8000/ws
>
>     I tried to use Protocol::WebSocket with the TCP socket used by
>     PoCo::Server::HTTP but my work is stalled.
>
>     I saw on CPAN that would be available the following packages :
>
>     POEx::Role::PSGIServer - Encapsulates core PSGI server behaviors
>     ===CUT===
>
>


--------------080407020302010106000208
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Il 12/12/2013 08:33, Konstantin Yakunin
      ha scritto:<br>
    </div>
    <blockquote
cite="mid:CAM1hPL0wTNDvxk-G=kGoRAyFE=zufvqkaOoEZ71MEvQnAmk8TA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">Hello,<br>
          <br>
        </div>
        <div class="gmail_extra">Try Plack::Builder<br>
          <br>
        </div>
        <div class="gmail_extra">use Plack::Builder;<br>
          <br>
        </div>
        <div class="gmail_extra">builder {<br>
          <br>
          }<br>
        </div>
        <div class="gmail_extra"><br>
        </div>
      </div>
    </blockquote>
    <br>
    I like! Thanks.<br>
    <br>
    <span id="result_box" class="" lang="en"><span class="hps">I tried
        to</span> <span class="hps">install</span> <span class="hps">POEx</span><span>-Role</span><span
        class="atn">-</span><span>PSGIServer</span> <span class="hps">from
        CPAN</span> <span class="hps">but points out the</span> <span
        class="hps">lack</span> <span class="hps">of the package</span>
      <span class="hps">POEx</span><span class="">-Role</span><span
        class="atn">-</span><span>SessionInstantiation </span></span><span
      id="result_box" class="" lang="en"><span><span id="result_box"
          class="" lang="en">[1]</span></span><br>
      <span class="hps">Here</span> <span class="hps">(
        <a class="moz-txt-link-freetext" href="https://rt.cpan.org/Public/Bug/Display.html?id=69745">https://rt.cpan.org/Public/Bug/Display.html?id=69745</a> )</span> <span
        class="hps">the author</span> of [1] <span class="hps">warns</span>
      <span class="hps">you deleted</span> <span class="hps">the
        package from</span> <span class="hps">CPAN</span> <span
        class="hps">because it</span> <span class="hps">is no longer
        compatible</span> <span class="hps">with</span> <span
        class="hps">the</span> <span class="hps">latest versions of</span>
      <span class="hps">Moose</span> <span class="hps">:-(<br>
      </span></span><span id="result_box" class="short_text" lang="en"><span
        class="hps">So,</span> <span class="hps">The</span> <span
        class="hps">POEx-...</span> <span class="hps">packages</span> <span
        class="hps">are</span> <span class="hps">all</span> <span
        class="hps">considered</span> <span class="hps">experimental</span><span
        class="">/broken?</span></span><br>
    <span id="result_box" class="" lang="en"><span class="hps">What</span>
      <span class="hps">could I use</span> <span class="hps">as a </span></span><span
      id="result_box" class="" lang="en"><span class="hps"><span
          id="result_box" class="" lang="en"><span class="hps">PSGI </span></span>server</span><span
        class="">, along with</span> <span class="hps">POE</span> <span
        class="hps">in</span> <span class="hps">a single task</span><span
        class="">?</span></span><br>
    ____<br>
    gdo&nbsp; <br>
    <br>
    <blockquote
cite="mid:CAM1hPL0wTNDvxk-G=kGoRAyFE=zufvqkaOoEZ71MEvQnAmk8TA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_quote">2013/12/11 Guido Brugnara <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">===CUT===<br>
              The target is to listen on the same port: <a
                moz-do-not-send="true" href="http://myapp:8000/..."
                target="_blank">http://myapp:8000/...</a>.. &nbsp;and for
              websocket <a class="moz-txt-link-freetext" href="ws://myapp:8000/ws">ws://myapp:8000/ws</a><br>
              <br>
              I tried to use Protocol::WebSocket with the TCP socket
              used by PoCo::Server::HTTP but my work is stalled.<br>
              <br>
              I saw on CPAN that would be available the following
              packages :<br>
              <br>
              POEx::Role::PSGIServer - Encapsulates core PSGI server
              behaviors<br>
              ===CUT===<br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------080407020302010106000208--