1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

generic broadcaster service

This commit is contained in:
Kyle Spearrin
2019-01-22 16:12:34 -05:00
parent 39b2ba1548
commit 6dc44c0885
3 changed files with 40 additions and 29 deletions

View File

@@ -0,0 +1,5 @@
export abstract class BroadcasterService {
send: (message: any, id?: string) => void;
subscribe: (id: string, messageCallback: (message: any) => any) => void;
unsubscribe: (id: string) => void;
}