<div dir="ltr">i just got a chance to revisit. scrapped ws4py for websocket-client. threw together in pyext. seems to work fine. i have to close connection though which I did not immediately figure out but just sending [reload{ to pyext with close connection.... hmmmm.<div><br></div><div><a href="https://github.com/megrimm/pd-pyws">https://github.com/megrimm/pd-pyws</a><br></div><div><br></div><div>also, anyone know why I get "Bad arguments for message 'loadbang' to object 'pyext'" for pyext objects? and how do I stop that?</div><div><br></div><div>cheers</div><div>m</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 25, 2016 at 11:47 AM, me.grimm <span dir="ltr"><<a href="mailto:megrimm@gmail.com" target="_blank">megrimm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">i just found this:<div><div><a href="https://libwebsockets.org/" target="_blank">https://libwebsockets.org/</a><br></div></div><div><br></div><div>which might be implementable in external? though i have never written an external against a lib api.... any good examples?</div><div><br></div><div>jamoma looks awesome... i had never seen it before. I will have to look into it more.</div><div>rhizome might not work. it is a web server I assume? I need to get data from a feed via a websocket (not mine).. but maybe I can?</div><div>I will also look at flask... looks good on surface.</div><div><br></div><div>cheers</div><span class="HOEnZb"><font color="#888888"><div>m</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 6:08 PM, patrice colet <span dir="ltr"><<a href="mailto:colet.patrice@free.fr" target="_blank">colet.patrice@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>maybe flask would be better for a python socket module</p>
    <p><a href="https://flask-socketio.readthedocs.io/en/latest/" target="_blank">https://flask-socketio.readthedocs.io/en/latest/</a><br>
    </p><div><div>
    <br>
    <div>Le 24/06/2016 à 16:22, me.grimm a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">yeah I am basically looking to stream a data feed
        from a website for example:
        <div><br>
        </div>
        <div><a>wss://</a><a href="http://ws-feed.foobar.com" target="_blank">ws-feed.foobar.com</a><br>
        </div>
        <div><br>
        </div>
        <div>with python:</div>
        <div><a href="https://github.com/Lawouach/WebSocket-for-Python" target="_blank">https://github.com/Lawouach/WebSocket-for-Python</a><br>
        </div>
        <div><br>
        </div>
        <div>which I'm having a hard time adapting to pyext. see:</div>
        <div><a href="http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-class" target="_blank">http://stackoverflow.com/questions/37995999/print-to-console-outside-of-the-class</a><br>
        </div>
        <div><br>
        </div>
        <div>but maybe you awesome list peeps have better suggestions?</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jun 24, 2016 at 7:03 AM,
          patrice colet <span dir="ltr"><<a href="mailto:colet.patrice@free.fr" target="_blank">colet.patrice@free.fr</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>by the way I wanted to know why writing a socket client
                in pd because it just take three lines of code for
                having a functionnal FUDI pdsend in almost all
                interpreted language...<br>
              </p>
              <div>
                <div> <br>
                  <div>Le 24/06/2016 à 00:01, patrice colet a écrit :<br>
                  </div>
                  <blockquote type="cite">
                    <p>hello,</p>
                    <p> I'm doing web socket with pd and a patch taken
                      in here,  it's a server using mrpeach/tcp objects,
                      I've attached it again...</p>
                    <p>my client is written in html5 there are pletores
                      of online tutorials for doing the socket client
                      working with this http server...</p>
                    <p>Is it possible to run a python http server
                      through pyext without admin rights?<br>
                    </p>
                    <p>patco<br>
                    </p>
                    <p><br>
                    </p>
                    <div>Le 23/06/2016 à 22:54, me.grimm a écrit :<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hello,
                        <div><br>
                        </div>
                        <div>Anyone make a Websocket client for Pd? I
                          see there is a server attempt out there (could
                          not find external code, just references) but a
                          client is what I need....</div>
                        <div><br>
                        </div>
                        <div>Been trying to build one with python/pyext
                          but running into a wall and thought I would
                          just ask in case I could save myself some
                          time.</div>
                        <div><br>
                        </div>
                        <div>Thanks!</div>
                        <div>m<br clear="all">
                          <div><br>
                          </div>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
                    </blockquote>
                    <br>
                    <pre cols="72">-- 
Patrice Colet
fr: 0632660357</pre>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Patrice Colet
fr: 0632660357</pre>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a>
            mailing list<br>
            UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank"></a><a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>____________________<br>
              m.e.grimm, m.f.a, ed.m.</div>
            <div>syracuse u., tc3</div>
            <div><a href="http://megrimm.net" target="_blank">megrimm.net</a><br>
              ____________________</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre cols="72">-- 
Patrice Colet
fr: 0632660357</pre>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>____________________<br>m.e.grimm, m.f.a, ed.m.</div><div>syracuse u., tc3</div><div><a href="http://megrimm.net" target="_blank">megrimm.net</a><br>____________________</div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>____________________<br>m.e.grimm, m.f.a, ed.m.</div><div>syracuse u., tc3</div><div><a href="http://megrimm.net" target="_blank">megrimm.net</a><br>____________________</div></div></div>
</div>