|
|
|
@ -75,6 +75,7 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.handleMessage = message => {
|
|
|
|
this.handleMessage = message => {
|
|
|
|
|
|
|
|
try {
|
|
|
|
const dataPlaintext = stringToArrayBufferBase64(message);
|
|
|
|
const dataPlaintext = stringToArrayBufferBase64(message);
|
|
|
|
const messageBuf = textsecure.protobuf.WebSocketMessage.decode(
|
|
|
|
const messageBuf = textsecure.protobuf.WebSocketMessage.decode(
|
|
|
|
dataPlaintext
|
|
|
|
dataPlaintext
|
|
|
|
@ -91,6 +92,13 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
const info = {
|
|
|
|
|
|
|
|
message,
|
|
|
|
|
|
|
|
error: error.message,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
window.log.warn('HTTP-Resources Failed to handle message:', info);
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.startPolling = async function pollServer(callback) {
|
|
|
|
this.startPolling = async function pollServer(callback) {
|
|
|
|
|