feat(api-server): Add websocket as /api/v1/ws route (#3707)

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Johannes7k75
2025-09-05 18:17:32 +02:00
committed by GitHub
parent 8b10872e83
commit cb85048af4
21 changed files with 194 additions and 20 deletions

View File

@ -184,7 +184,7 @@ export type SongInfoCallback = (
const callbacks: Set<SongInfoCallback> = new Set();
// This function will allow plugins to register callback that will be triggered when data changes
const registerCallback = (callback: SongInfoCallback) => {
export const registerCallback = (callback: SongInfoCallback) => {
callbacks.add(callback);
};
@ -282,5 +282,4 @@ export function cleanupName(name: string): string {
return name;
}
export default registerCallback;
export const setupSongInfo = registerProvider;