update noVNC to latest upstream version (#455)

See vatesfr/xo-web#404
This commit is contained in:
Nicolas Raynaud 2017-06-30 16:57:03 +02:00 committed by Julien Fontanet
parent d4f8d98d2b
commit 58ec9f4676

View File

@ -34,8 +34,7 @@ export default function proxyConsole (ws, vmConsole, sessionId) {
debug('connected')
})).on('data', data => {
if (!closed) {
// Encode to base 64.
ws.send(data.toString('base64'), onSend)
ws.send(data, onSend)
}
}).on('end', () => {
if (!closed) {
@ -55,8 +54,7 @@ export default function proxyConsole (ws, vmConsole, sessionId) {
})
.on('message', data => {
if (!closed) {
// Decode from base 64.
socket.write(Buffer.from(data, 'base64'))
socket.write(data)
}
})
.on('close', () => {