Skip to content

Commit

Permalink
๐Ÿ”ง fix : ์›น์†Œ์ผ“ ์—ฐ๊ฒฐ ์ดˆ๊ณผ์‹œ error ๋ฐœ์ƒ
Browse files Browse the repository at this point in the history
  • Loading branch information
jinddings committed Dec 3, 2024
1 parent 1acdd10 commit fcf2cb5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion BE/src/common/websocket/base-socket.domain-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@ export class BaseSocketDomainService implements OnModuleInit {

if (data.length < 2) {
const json = JSON.parse(data[0]);
if (json.body)
if (json.body) {
this.logger.log(
`ํ•œ๊ตญํˆฌ์ž์ฆ๊ถŒ ์›น์†Œ์ผ“ ์—ฐ๊ฒฐ: ${json.body.msg1}`,
json.header.tr_id,
);

if (json.body.msg1 === 'MAX SUBSCRIBE OVER') {
throw new InternalServerErrorException(
'ํ•œ๊ตญํˆฌ์ž์ฆ๊ถŒ ์›น์†Œ์ผ“ ์—ฐ๊ฒฐ: MAX SUBSCRIBE OVER',
);
}
}
if (json.header.tr_id === 'PINGPONG')
this.socket.pong(JSON.stringify(json));
return;
Expand Down

0 comments on commit fcf2cb5

Please sign in to comment.