Skip to content

Commit c87d87a

Browse files
committed
reply.data
1 parent b66363e commit c87d87a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/comms/isocket-comms.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@ class ISocketComms extends EventEmitter {
9898
if(this.aesStream){
9999
debug('decrypting quantum aes')
100100
console.log(reply, typeof reply)
101+
console.log(typeof reply.data)
101102

102-
let buf = reply
103+
let buf = reply.data
103104

104105
if(buf instanceof Blob){
105-
debug('reply is a blob')
106-
buf = await reply.arrayBuffer();
106+
debug('reply.data is a blob')
107+
buf = await reply.data.arrayBuffer();
107108
} else {
108-
buf = reply.data
109+
//buf = reply.data
109110
}
110111

111112
const contentBSON = await this.aesStream.decrypt( new Uint8Array(buf) )

0 commit comments

Comments
 (0)