fix(services): add missing real time

This commit is contained in:
Divlo
2022-03-02 11:47:13 +01:00
parent c23239c0da
commit 1bcee76324
5 changed files with 92 additions and 32 deletions

View File

@ -15,7 +15,7 @@ interface EmitEventOptions {
interface EmitToAuthorizedUsersOptions extends EmitEventOptions {
/** tests whether the current connected userId is authorized to get the event, if the callback returns true, the server will emit the event to that user */
isAuthorizedCallback: (userId: number) => Promise<boolean>
isAuthorizedCallback: (userId: number) => Promise<boolean> | boolean
}
type EmitToAuthorizedUsers = (