Skip to content

Commit

Permalink
[rev] luis last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
argotte committed Jan 18, 2024
1 parent 0df8ee7 commit a1e8f60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/songs/infrastructure/sockets/transmit-ws.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class TransmitWsGateway
const song: Song = (
await this.getSongByIdService.execute(getSongByIdServiceDto)
).value;
client.data.stop = false;
//client.data.stop = false;

const filePath: string = `https://desarrollosoundspace.blob.core.windows.net/${
this.sendPreview(this.subscription)
Expand Down Expand Up @@ -98,16 +98,16 @@ export class TransmitWsGateway

response.data.on('data', (chunk: Buffer) => {
if (!client.data.stop) {
cont++;
// cont++;
client.emit('message-from-server', { chunk });
console.log(cont);
}
});

client.on('client-stopping', () => {
client.data.stop = true;
console.log('paro la cancion');
});
// client.on('client-stopping', () => {
// client.data.stop = true;
// console.log('paro la cancion');
// });

response.data.on('end', () => {
console.log('Streaming complete');
Expand Down

0 comments on commit a1e8f60

Please sign in to comment.