Hi Support Team ABP!
ABP Framework version: v7.4.0
UI Type:Angular
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Currently, I am using chat module. This module is working well. However, I want to implement a feature like: Build a hub, when a user is typing of chat box, some event will be send to the hub Can you guide me step by step implement for this?
6 Answer(s)
-
0
-
0
Hi maliming! Do you have any idea? Can you suggest for me solution implement for this?
-
0
Hi maliming! I'm downloaded source of chat module. Can you guild for me implement feature: Build a hub and angular side, when a user is typing of chat box, some event will be send to the hub and forward to target user.
-
0
hi
You can add a new Hub and add a new service like
SignalRTypingMessageSender(SignalRRealTimeChatMessageSender)
In angular side. Send the request to API when the user is typing. And the API uses
SignalRTypingMessageSender
to send the messages to users. -
0
Hi maliming!
Thanks for your suggestion However, I think In angular side, sending request to API when users is typing will make our backend overload when there are many users chat on the same time. My project will serve a large number of uset So I want to crate a hub. Whenever a user is typing, angular will send event into a hub, and hun can send to user who is in the chat channel Could you please help me with a solution or any sample projects that can resolve this problem?
-
0
hi
These belong to the scope of SignalR, You can get sample code from its document.