Skip to content

Commit

Permalink
🔥 Remove openapi doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Oct 26, 2024
1 parent b2a8703 commit f027358
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/modules/websocket/download.gateway.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {SubscribeMessage, WebSocketGateway, WebSocketServer} from "@nestjs/websockets";
import {Server} from "socket.io";
import {AsyncApiSub} from "nestjs-asyncapi";
import CachedWebtoonModel from "../webtoon/webtoon/models/models/cached-webtoon.model";

@WebSocketGateway({
Expand All @@ -14,34 +13,16 @@ export class DownloadGateway{
@WebSocketServer() socket: Server;

@SubscribeMessage("episode/progress")
@AsyncApiSub({
channel: "download/episode/progress",
message: {
payload: Number,
},
})
public onEpisodeProgress(progress: number){
this.socket.emit("episode/progress", progress);
}

@SubscribeMessage("progress")
@AsyncApiSub({
channel: "download/progress",
message: {
payload: Number,
},
})
public onDownloadProgress(progress: number){
this.socket.emit("progress", progress);
}

@SubscribeMessage("start")
@AsyncApiSub({
channel: "download/start",
message: {
payload: CachedWebtoonModel,
},
})
public onDownloadStart(webtoon: CachedWebtoonModel){
this.socket.emit("start", webtoon);
}
Expand Down

0 comments on commit f027358

Please sign in to comment.