Open Closed

Chat Module #6208


User avatar
0
datdv1 created

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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You better download the source code of the Chat module to customize your new feature.

    There are some services in the Signalr module.

  • User Avatar
    0
    datdv1 created

    Hi maliming! Do you have any idea? Can you suggest for me solution implement for this?

  • User Avatar
    0
    datdv1 created

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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.

  • User Avatar
    0
    datdv1 created

    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?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    These belong to the scope of SignalR, You can get sample code from its document.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11