Move query matching before publication (#17121)
- new channel EVENT_STREAM_CHANNEL based on event stream id - on event, perform the matching and publish only to the right streams - store a list of active streams per workspace - store the user id along with the queries for each stream Bonus: - remove onSubscriptionMatch
This commit is contained in:
@@ -22,6 +22,14 @@ export type AuthContext = {
|
||||
};
|
||||
};
|
||||
|
||||
export type SerializableAuthContext = {
|
||||
userId?: string;
|
||||
userWorkspaceId?: string;
|
||||
workspaceMemberId?: string;
|
||||
apiKeyId?: string;
|
||||
applicationId?: string;
|
||||
};
|
||||
|
||||
export enum JwtTokenTypeEnum {
|
||||
ACCESS = 'ACCESS',
|
||||
REFRESH = 'REFRESH',
|
||||
|
||||
Reference in New Issue
Block a user