[Twisted-Python] AMP WebSockets bridging

Laurens Van Houtven _ at lvh.cc
Mon Jun 18 17:33:17 EDT 2012


How do you process that data on the client side given the poor support of
ArrayBuffer and Blob?

On Monday, June 18, 2012, Corbin Simpson wrote:

> On Fri, Jun 15, 2012 at 12:32:37PM -0700, Glyph wrote:
> > On Jun 15, 2012, at 10:13 AM, Laurens Van Houtven wrote:
> > > The issue is that while AMP is inherently a binary protocol,
> WebSockets transfer text (well, that's a lie: there's a binary version, but
> it's even less widely supported than WebSockets themselves -- and SockJS
> doesn't support it at all, although it's on the roadmap). So, I need an
> alternative, preferably 7-bit, serialization for AMP boxes.
> > Did you immediately discard the obvious solution of "base64 everything"?
> :)
>
> I should point out that at least one WebSockets JavaScript thing, noVNC,
> uses
> base64 as its solution to the problem, and that's what I originally wrote
> txWS
> to deal with. This works quite fine for OSUOSL on all of the target
> browsers
> we care about.
>
> I don't know if this is the *right* solution, but it certainly is the least
> painful.
>
> ~ C.
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com <javascript:;>
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>


-- 
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20120618/ae9bf327/attachment.htm 


More information about the Twisted-Python mailing list