dalbodeule
101db7d20c
[refactor] chzzk4j update to 0.1.1
2025-05-13 21:31:17 +09:00
dalbodeule
3c3b9a79a2
debug chzzk login 4
2025-05-13 21:25:57 +09:00
dalbodeule
61a5f985c1
Refactor: replace songListScope with appropriate scopes
...
Replaced `songListScope` with `songScope` in `WSSongRoutes` and `timerScope` in `WSTimerRoutes` to better reflect their respective purposes. Improves code clarity and consistency in scope usage.
2025-04-24 17:48:11 +09:00
dalbodeule
aa95976005
Refactor WebSocket song list handling and improve session logic
...
Replaced individual WebSocket session management with `SessionHandler` to centralize and streamline logic. Improved code readability, reliability, and maintainability by reducing redundancy and encapsulating session and request handling in dedicated classes. Added retry mechanisms, acknowledgment handling, and better application shutdown handling.
2025-04-24 17:45:25 +09:00
dalbodeule
c5a98943c0
Refactor WebSocket ACK handling and improve message retries
...
Introduced `waitForAck` to centralize ACK handling logic and updated retry mechanism in `sendWithRetry` to improve reliability and readability. Cleaned up error handling in WebSocket session management and ensured proper cleanup of resources. These changes enhance maintainability and robustness of the WebSocket song list routes.
2025-04-24 17:08:12 +09:00
dalbodeule
8230762053
Refactor WebSocket handlers and add ACK-based message flow
...
Consolidated coroutine scopes into `songListScope` and `timerScope` for better management across WebSocket routes. Introduced ACK (acknowledgment) handling for reliable message delivery with retries and timeouts. Updated session handling for multiple WebSocket routes to improve code maintainability and consistency.
2025-04-24 16:56:49 +09:00
dalbodeule
d07cdb6ae8
Cancel route scope on application stop and simplify ACK handling.
...
Added a monitor to cancel the route scope when the application stops, ensuring proper resource cleanup. Removed the timeout logic in the ACK handling method, simplifying the flow while maintaining error handling.
2025-04-24 16:37:11 +09:00
dalbodeule
9c15c8f10d
Remove SongListWebSocketManager and simplify wsSongListRoutes
...
The SongListWebSocketManager class and its associated logic were removed to streamline the codebase. The wsSongListRoutes function was updated accordingly to no longer require the manager as a parameter.
2025-04-24 16:26:25 +09:00
dalbodeule
5a7f78ff3e
Refactor WebSocket route to use shared CoroutineScope
...
Introduced a shared `routeScope` with `SupervisorJob` for better coroutine management across WebSocket routes. This replaces ad-hoc CoroutineScope creation, preventing unnecessary scope overhead and supporting centralized cancellation. Mutexes were added for session and song-related operations to ensure thread safety.
2025-04-24 16:23:55 +09:00
dalbodeule
7a84a9e437
Configure SongListWebSocketManager in wsSongListRoutes.
...
This change adds a `SongListWebSocketManager` instance with a logger to the `wsSongListRoutes` setup. It improves manageability and ensures better logging for WebSocket interactions in the song list route.
2025-04-24 16:01:16 +09:00
dalbodeule
02cede87f8
Add SongListWebSocketManager and refactor WebSocket routes
...
Introduced SongListWebSocketManager for managing WebSocket sessions, including ping-pong handling and retry mechanisms. Refactored WSSongListRoutes to delegate session management and simplify logic by leveraging the new manager class.
2025-04-24 15:58:56 +09:00
dalbodeule
17d8065a34
Fix session cleanup in WebSocket routes
...
Add missing `finally` blocks to ensure session removal in WebSocket routes after exceptions. This prevents potential memory leaks and ensures proper resource cleanup.
2025-04-24 15:01:12 +09:00
dalbodeule
0e8462eaf1
Handle WebSocket session removal on channel closure
...
Add `removeSession` calls in WebSocket exception handling blocks to ensure proper session cleanup when a `ClosedReceiveChannelException` occurs. Prevents potential resource leaks and ensures consistency across WebSocket routes.
2025-04-24 14:56:00 +09:00
dalbodeule
83cb68b63f
**Remove redundant session cleanup in WebSocket error handlers**
...
Removed unnecessary `removeSession` calls from WebSocket `finally` blocks as they are either handled elsewhere or no longer needed. This simplifies the error handling flow and ensures consistency across WebSocket route implementations.
2025-04-24 14:51:28 +09:00
JinU Choi and GitHub
c2bb653ee1
Merge pull request #124 from dalbodeule/develop
...
if account deleted?
2025-03-31 18:47:13 +09:00
dalbodeule
8ab1dc585e
if account deleted?
2025-03-31 18:43:12 +09:00
JinU Choi and GitHub
22d97c6604
Merge pull request #123 from dalbodeule/debug
...
debug done
2025-01-09 00:12:01 +09:00
dalbodeule
e653af7853
debug chzzk login 3
2025-01-09 00:04:52 +09:00
JinU Choi and GitHub
0951169ce1
Merge pull request #122 from dalbodeule/develop
...
debug chzzk login 2
2025-01-09 00:01:13 +09:00
dalbodeule
9cf85a7bef
debug chzzk login 2
2025-01-08 23:58:11 +09:00
JinU Choi and GitHub
6bf80c309f
Merge pull request #121 from dalbodeule/develop
...
debug chzzk login
2025-01-08 23:45:30 +09:00
dalbodeule
2c686e5777
debug chzzk login
2025-01-08 23:42:21 +09:00
JinU Choi and GitHub
65fae33467
Merge pull request #120 from dalbodeule/develop
...
login method changed to chzzk login
2025-01-08 23:17:45 +09:00
dalbodeule
d3ed6c2d86
login method changed to chzzk login
2025-01-08 23:13:04 +09:00
JinU Choi and GitHub
d576d085f7
Merge pull request #119 from dalbodeule/develop
...
add botIsDisabled, welcomeMessageDisabled.
2024-12-09 14:51:56 +09:00
dalbodeule
eccf1a29bc
add botIsDisabled, welcomeMessageDisabled.
2024-12-09 14:47:41 +09:00
dalbodeule
4fca9df9c2
debugs... 4
2024-11-25 20:04:50 +09:00
dalbodeule
c14fc53dee
debugs... 3
2024-11-25 19:58:17 +09:00
dalbodeule
768eadd561
debugs...
2024-11-25 19:56:22 +09:00
dalbodeule
9396e69570
debugs...
2024-11-25 18:50:23 +09:00
dalbodeule
8dd8f33cdd
dependencies update
2024-11-16 20:35:30 +09:00
dalbodeule
ba1be00390
add one options.
...
- disableStartupMessage
2024-11-16 20:22:06 +09:00
JinU Choi and GitHub
99686496b4
Merge pull request #118 from dalbodeule/debug
...
debug on WSSongListRoutes.kt
2024-09-24 11:28:58 +09:00
dalbodeule
ca2089631a
debug on WSSongListRoutes.kt
...
- debug re-tx logics
2024-09-24 10:48:50 +09:00
dalbodeule
c9ceaf01fc
debug on WSSongListRoutes.kt
...
- debug re-tx logics
2024-09-24 10:42:39 +09:00
dalbodeule
94e226fcab
debug on WSSongListRoutes.kt
...
- add re-tx logics
- add ACK enum value
- else other improve
2024-09-24 10:35:11 +09:00
dalbodeule
3e0246771e
debug on ApiCommandRoutes.kt, SongList.kt
...
- ApiCommandRoutes.kt is CommandReloadEvent post 4 times.
- SongList.kt is song_list.req_name length 20 to 80(byte)
2024-09-14 18:36:24 +09:00
dalbodeule
c0cec43f39
debug on loading (7x)
2024-08-28 22:16:14 +09:00
dalbodeule
b7985ff72c
debug on loading (6x)
2024-08-28 21:42:46 +09:00
dalbodeule
be057c59e1
debug on loading (5x)
2024-08-28 21:37:25 +09:00
dalbodeule
5450d5039a
debug on loading (4x)
2024-08-28 21:26:24 +09:00
dalbodeule
ae850b93d0
debug on loading (3x)
2024-08-28 21:20:43 +09:00
dalbodeule
5226c5b60d
debug on eagerLoading (2x)
2024-08-28 21:07:49 +09:00
dalbodeule
534aaecb6e
debug on eagerLoading (1x)
2024-08-28 21:01:35 +09:00
dalbodeule
a7069046f6
managers relation is fixed (9x)
2024-08-28 20:39:23 +09:00
dalbodeule
593546c89b
managers relation is fixed (8x)
2024-08-28 17:58:35 +09:00
dalbodeule
f5133c4551
managers relation is fixed (6x)
2024-08-28 17:39:35 +09:00
dalbodeule
7c2f5f90fe
managers relation is fixed (5x)
2024-08-28 17:26:24 +09:00
dalbodeule
3e0f63a3d1
managers relation is fixed (4x)
2024-08-28 17:24:02 +09:00
dalbodeule
5d9b6a7e5e
managers relation is fixed (3x)
2024-08-28 17:16:48 +09:00
dalbodeule
1ec899a55a
managers relation is fixed (2x)
2024-08-28 17:02:22 +09:00
dalbodeule
447858a48c
managers relation is fixed
2024-08-28 16:21:34 +09:00
JinU Choi and GitHub
7784130be3
Merge pull request #117 from dalbodeule/develop
...
Manager function to web
2024-08-28 16:01:40 +09:00
dalbodeule
82c4f7b021
managers table is dropped.
2024-08-28 15:58:17 +09:00
dalbodeule
f1dc591b55
some fix on Manager functions.
2024-08-28 15:55:47 +09:00
JinU Choi and GitHub
bf01af04c6
Merge pull request #116 from dalbodeule/develop
...
some fix on wsTimerRoutes
2024-08-28 10:46:09 +09:00
dalbodeule
3806b0f824
some fix on wsTimerRoutes
2024-08-28 10:42:41 +09:00
JinU Choi and GitHub
3cea492563
Merge pull request #115 from dalbodeule/develop
...
some fix on wsSongListRoutes
2024-08-24 15:13:02 +09:00
dalbodeule
1186f647d2
some fix on songList logics
2024-08-24 15:10:44 +09:00
dalbodeule
b87cf8cbfb
some fix on wsSongListRoutes
...
- song remove from list(database) logic add
2024-08-24 15:08:05 +09:00
JinU Choi and GitHub
fc94ffc03c
Merge pull request #114 from dalbodeule/develop
...
some fix on WSSongListRoutes
2024-08-24 14:34:52 +09:00
dalbodeule
9f4f8e84aa
some fix on WSSongListRoutes
...
- add delUrl to SongResponse
2024-08-24 14:32:38 +09:00
JinU Choi and GitHub
36a5b24e4c
Merge pull request #113 from dalbodeule/develop
...
some fix on SongSResponseDTO
2024-08-24 13:59:13 +09:00
dalbodeule
22bbd05aff
some fix on SongSResponseDTO
...
- add @Serializable annotation
2024-08-24 13:57:59 +09:00
JinU Choi and GitHub
ae5e520dea
Merge pull request #112 from dalbodeule/develop
...
fix SongLists
2024-08-24 13:53:32 +09:00
dalbodeule
8bbd163458
fix some event-emitter
2024-08-24 13:51:08 +09:00
dalbodeule
36d0ed82d6
fix SongLists
...
- add currentSong object
- change some event, dto.
2024-08-24 13:31:50 +09:00
JinU Choi and GitHub
8e1e472bda
Merge pull request #111 from dalbodeule/develop
...
fix discord alert.
2024-08-22 16:33:34 +09:00
dalbodeule
ef983cbe22
fix discord alert.
...
- Number to Long change.
2024-08-22 16:29:53 +09:00
JinU Choi and GitHub
91e22107c9
Merge pull request #110 from dalbodeule/develop
...
fix some endpoints.
2024-08-21 19:10:28 +09:00
dalbodeule
a733f56d8c
fix some endpoints.
...
- In apiDiscordRoutes, guildId and channelId return string.
- In wsSongListRoutes, retry 5 times, some logic changed.
2024-08-21 19:08:23 +09:00
JinU Choi and GitHub
e855566193
Merge pull request #109 from dalbodeule/develop
...
fix wsSongRoutes
2024-08-20 11:31:48 +09:00
dalbodeule
327862f6a5
fix wsSongRoutes
...
- re-tx logic add
- if re-tx logic fail 3 times, disconnect websocket.
2024-08-20 11:26:55 +09:00
JinU Choi and GitHub
3972530c79
Merge pull request #108 from dalbodeule/develop
...
fix wsSongListRoutes
2024-08-19 17:27:29 +09:00
dalbodeule
e3c0266253
fix wsSongListRoutes
...
- duplicated session is not permited.
- re-tx logic add
2024-08-19 17:24:42 +09:00
JinU Choi and GitHub
7553e8be7e
Merge pull request #107 from dalbodeule/debug
...
add "!명령어" commandListCommand.
2024-08-18 18:36:26 +09:00
dalbodeule
764714c33a
add "!명령어" commandListCommand.
2024-08-18 18:34:49 +09:00
JinU Choi and GitHub
0813955b12
Merge pull request #106 from dalbodeule/develop
...
command list pages.
2024-08-18 18:28:49 +09:00
dalbodeule
5c3c69c585
command list pages.
...
- set /commands/{uid} page to not require login.
2024-08-18 18:25:46 +09:00
JinU Choi and GitHub
4a754569cd
Merge pull request #105 from dalbodeule/develop
...
chisu playlist fix
2024-08-16 08:46:26 +09:00
dalbodeule
89dda9742a
chisu playlist fix
...
- if youtube video limited 10-min
- add youtube music regex.
2024-08-16 08:42:53 +09:00
JinU Choi and GitHub
0d92027acc
Merge pull request #104 from dalbodeule/develop
...
asdf4
2024-08-15 20:34:39 +09:00
dalbodeule
35d8759ee3
asdf4
2024-08-15 20:32:31 +09:00
JinU Choi and GitHub
97b29ad76b
Merge pull request #103 from dalbodeule/develop
...
asdf3
2024-08-15 19:54:22 +09:00
dalbodeule
8a3c64ab46
asdf3
2024-08-15 19:53:40 +09:00
JinU Choi and GitHub
325860523f
Merge pull request #102 from dalbodeule/develop
...
asdf2
2024-08-15 19:48:55 +09:00
dalbodeule
1bea333d9d
asdf2
2024-08-15 19:48:31 +09:00
JinU Choi and GitHub
09ed95a3b3
Merge pull request #101 from dalbodeule/develop
...
asdf
2024-08-15 19:47:37 +09:00
dalbodeule
c4db370c91
asdf
2024-08-15 19:45:36 +09:00
dalbodeule
6cb915a3e1
chzzkHandler fix (2x)
2024-08-15 19:31:03 +09:00
dalbodeule
23c28ce643
chzzkHandler fix
2024-08-15 19:26:26 +09:00
JinU Choi and GitHub
032a03b3ce
Merge pull request #100 from dalbodeule/develop
...
error handler errorlog add.
2024-08-15 19:19:04 +09:00
dalbodeule
6ba1d1bca9
error handler errorlog add.
2024-08-15 19:18:30 +09:00
JinU Choi and GitHub
599a532d81
Merge pull request #99 from dalbodeule/develop
...
chzzkHandler fix
2024-08-15 17:37:40 +09:00
dalbodeule
a3b69acc18
chzzkHandler fix
2024-08-15 17:35:45 +09:00
JinU Choi and GitHub
b889599558
Merge pull request #98 from dalbodeule/develop
...
command, ws ping message fix
2024-08-15 16:58:12 +09:00
dalbodeule
20417745d4
command, ws ping message fix
...
- remove commands (command CRUD, hook, alert)
- ws ping message fix
2024-08-15 16:56:31 +09:00
JinU Choi and GitHub
ec0d811dbc
Merge pull request #97 from dalbodeule/develop
...
apiDiscordRoutes add.
2024-08-15 13:50:47 +09:00
dalbodeule
9a303ff342
apiDiscordRoutes add.
...
- add POST /discord/{uid} endpoints.
2024-08-15 13:49:18 +09:00
JinU Choi and GitHub
3fe36daf14
Merge pull request #96 from dalbodeule/develop
...
apiDiscordRoutes fix. (18x)
2024-08-15 11:23:36 +09:00