Answer the question
In order to leave comments, you need to log in
What is the block diagram of real-time notification implementations in a SPA written in ReactJS?
Hello.
There is an app in React.
It is necessary to hang real-time notifications for the logged-in user in accordance with his access rights to any random event committed by other users. Those. just a layer in the controller in the form this._logAction(obj)
, where
obj = {
action: "описание или идентификатор события",
user: "имя пользователя",
permissions: "требуемый пермишен для данного уведомления, без привязки к тому, разрешено ли данное действие для пользователя или нет, чтобы можно было гибко настраивать уведомления для любой роли и пользователя",
error: "описание ошибки, если имеется"
}
Answer the question
In order to leave comments, you need to log in
After registration, for example, you emit an event, the client listens and shows the information. You can look at the socket.io module
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question