• Joel Martin's avatar
    rfb.js: avoid multiple b64 sequences per frame. · 79f0a095
    Joel Martin authored
    Only call encode_message when the WebSockets object is actually
    ready to send. Otherwise multiple base64 encode sequences can be
    encoded into the same WebSockets frame. This causes the C version of
    wsproxy to crash and the python version to ignore the subsequent
    base64 sequence(s).
    
    Thanks to Colin Dean (xvpsource.org) for finding this and helping
    track it down.
    79f0a095
rfb.js 48.7 KB