I have some products which have been added by different sellers but if I have a problem with a product, I would like to chat with the seller. But the chat process will remain open for everyone.
Loading
I have some products which have been added by different sellers but if I have a problem with a product, I would like to chat with the seller. But the chat process will remain open for everyone.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasad RaveendranRank #320 · 7.8K reputationPosted Jun 14, 2024, 11:59 AM EDT
To implement a chat feature in .NET where customers can chat with sellers about specific products, you'll need to set up a few things:
Database Structure: You'll need tables for Users, Products, Messages, and possibly Chats.
API Endpoints: Create APIs for creating a new chat, sending messages, and retrieving chat history.
SignalR for Real-Time Communication: Use SignalR to enable real-time messaging.
I would appreciate if you provide the exact issue and the code snippet to get more insights.
Jayraj ChhayaRank #304 · 8.2K reputationPosted Jun 11, 2024, 2:26 AM EDT
To implement a chat process in a Dot Net application for communicating with sellers about products, you can utilize real-time communication technologies like SignalR. SignalR allows you to create interactive, real-time applications easily.
public class ChatHub : Hub { public async Task SendMessage(string user, string message) { await Clients.All.SendAsync("ReceiveMessage", user, message); } }By following these steps and customizing the chat functionality, you can create a chat process in your Dot Net application where users can communicate with sellers while keeping the chat open for everyone involved.
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Jun 13, 2024, 9:55 PM EDT
Hello,
You need to provide seller wise configuration and whoever seller that chat configuration enable then it will shaw the chat option otherwise don't.
Thanks