Re: Support for websockets.
Jean-Paul Calderone <[email protected]> Fri, 4 Aug 2017 11:53:52 -0400
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <CAEeXt4MsB4FhD4qnzW52oH7Qq+6rCn7fJe50=8SVL4-fjtPnTw@mail.gmail.com> |
--===============3883210550019947603== Content-Type: multipart/alternative; boundary="001a114589b601c77f0555ef813a" --001a114589b601c77f0555ef813a Content-Type: text/plain; charset="UTF-8" On Fri, Aug 4, 2017 at 11:29 AM, Mike Mestnik < [email protected]> wrote: > On Fri, Aug 4, 2017 at 9:11 AM, Jean-Paul Calderone > <[email protected]> wrote: > > On Fri, Aug 4, 2017 at 10:01 AM, Mike Mestnik > > <[email protected]> wrote: > >> > >> I was working on Tor2web, a client of twisted web. I discover that to > > > > > > What are you trying to do? The subject of your message suggests you're > > interested in some kind of WebSocket support but I have trouble following > > the rest. > > > > If you want Twisted and WebSockets, take a look at this: > > https://github.com/crossbario/autobahn-python > > > I want twisted.web.client.Agent that will see the connection being > upgraded and release the socket FOR websocket. Currently if you tried > to use twisted.web.client.Agent with autobahn-python bad things would > happen. > > Autobahn also has support for building WebSocket clients: http://autobahn.readthedocs.io/en/stable/websocket/programming.html#creating-clients Jean-Paul --001a114589b601c77f0555ef813a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On F= ri, Aug 4, 2017 at 11:29 AM, Mike Mestnik <span dir=3D"ltr"><<a href=3D"= mailto:[email protected]" target=3D"_blank">cheako+twist= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex"><span class=3D"gmail-">On Fri, Aug 4, 2017 at 9:11= AM, Jean-Paul Calderone<br> <<a href=3D"mailto:[email protected]">[email protected]<= /a>> wrote:<br> > On Fri, Aug 4, 2017 at 10:01 AM, Mike Mestnik<br> > <<a href=3D"mailto:cheako%[email protected]">cheako+t= wistedmatrix@<wbr>mikemestnik.net</a>> wrote:<br> >><br> >> I was working on Tor2web, a client of twisted web.=C2=A0 I discove= r that to<br> ><br> ><br> > What are you trying to do?=C2=A0 The subject of your message suggests = you're<br> > interested in some kind of WebSocket support but I have trouble follow= ing<br> > the rest.<br> ><br> > If you want Twisted and WebSockets, take a look at this:<br> > <a href=3D"https://github.com/crossbario/autobahn-python" rel=3D"noref= errer" target=3D"_blank">https://github.com/crossbario/<wbr>autobahn-python= </a><br> ><br> </span>I want twisted.web.client.Agent that will see the connection being<b= r> upgraded and release the socket FOR websocket.=C2=A0 Currently if you tried= <br> to use=C2=A0 twisted.web.client.Agent with autobahn-python bad things would= <br> happen.<br> <br></blockquote><div><br></div><div>Autobahn also has support for building= WebSocket clients:</div><div><br></div><div><a href=3D"http://autobahn.rea= dthedocs.io/en/stable/websocket/programming.html#creating-clients">http://a= utobahn.readthedocs.io/en/stable/websocket/programming.html#creating-client= s</a><br></div><div><br></div><div>Jean-Paul</div><div><br></div></div></di= v></div> --001a114589b601c77f0555ef813a-- --===============3883210550019947603== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVHdpc3RlZC13 ZWIgbWFpbGluZyBsaXN0ClR3aXN0ZWQtd2ViQHR3aXN0ZWRtYXRyaXguY29tCmh0dHBzOi8vdHdp c3RlZG1hdHJpeC5jb20vY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3R3aXN0ZWQtd2ViCg== --===============3883210550019947603==--