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:
@@ -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
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user