getting data transformation with pub sub, although just need to solidify with more flow and just do it step by step as it can get complex

This commit is contained in:
talksik
2022-05-06 10:41:28 -05:00
parent 61c2ac14af
commit f3cd9edc95
5 changed files with 99 additions and 10 deletions
+14
View File
@@ -22,6 +22,8 @@ enum SocketChannels {
TUNE_TO_LINE = "TUNE_TO_LINE",
SOMEONE_TUNED_TO_LINE = "SOMEONE_TUNED_TO_LINE",
USER_BROADCAST_PUSH_PULL = "USER_BROADCAST_PUSH_PULL",
}
export default SocketChannels;
@@ -47,3 +49,15 @@ export class SomeoneTuned {
public allTunedIntoUserIds: string[]
) {}
}
export class UserBroadcastingPush {
constructor(public lineId: string, public isTurningOn: boolean = true) {}
}
export class UserBroadcastPull {
// is the user turning their broadcasting on or off for a specific line?
constructor(
public lineId: string,
public userId: string,
public isTurningOn: boolean = true
) {}
}