|
@@ -182,9 +182,6 @@ export class StreamService {
|
|
|
|
|
|
const currentSlice = allData.slice(startSlot, sliceLength);
|
|
|
|
|
|
- // console.log('startSlot', startSlot);
|
|
|
- // console.log('sliceLength', sliceLength);
|
|
|
-
|
|
|
const blockBuffStart = Buffer.alloc(this.block);
|
|
|
const packBuffer = Buffer.concat([blockBuffStart, currentSlice]);
|
|
|
const framePack = new DataView(
|
|
@@ -219,6 +216,8 @@ export class StreamService {
|
|
|
let isPush: boolean;
|
|
|
// this.logger.log('statusPack', statusPack);
|
|
|
if (this.channel && this.channel.isOpen()) {
|
|
|
+ console.log('bufferedAmount', this.channel.bufferedAmount());
|
|
|
+ console.log('maxMessageSize', this.channel.maxMessageSize());
|
|
|
isPush = this.channel.sendMessageBinary(
|
|
|
Buffer.from(framePack.buffer),
|
|
|
);
|