This commit is contained in:
Mukesh 2014-09-12 11:17:18 +00:00
commit e8aea4981e
1 changed files with 3 additions and 3 deletions

View File

@ -158,13 +158,13 @@ function rQwait(msg, num, goback) {
// Private utility routines // Private utility routines
// //
function encode_message() { function encode_message(sendQueue) {
if (mode === 'binary') { if (mode === 'binary') {
// Put in a binary arraybuffer // Put in a binary arraybuffer
return (new Uint8Array(sQ)).buffer; return (new Uint8Array(sendQueue)).buffer;
} else { } else {
// base64 encode // base64 encode
return Base64.encode(sQ); return Base64.encode(sendQueue);
} }
} }