• Joel Martin's avatar
    websock.js: simpler binary support, protocols param. · fcff386b
    Joel Martin authored
    Use a simpler method of enabling binary transfer over WebSockets. This
    still presents the user of websock.js with a plain javascript array
    for the receive queue data. However, if binary support is supported
    and requested then the transfer will be raw frames instead of base64
    encoded.
    
    Lots of room for optimization here but for now correct is better than
    fast.
    
    Pull from websockify 17175afd7311c55abd8d
    fcff386b
websock.js 10.9 KB