mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 03:41:46 +00:00
feat(api-server): Add websocket as /api/v1/ws route (#3707)
Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user