Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6165739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:13:06+00:00 2026-05-23T22:13:06+00:00

I am building a chat feature inside a website, something like stackoverflow chat but

  • 0

I am building a chat feature inside a website, something like stackoverflow chat but simpler, are there any best practices or standards I need to follow while creating this feature using MVC .net and javascript? are there any articles documents or books talked about this in details?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:13:06+00:00Added an answer on May 23, 2026 at 10:13 pm

    Disclaimer: I am by no means an expert, but I’ll do my best. If someone thinks this would better serve as a community wiki, I’ll change it to such, just let me know.

    As I see it, there are two general fields of chat services:

    Chat Rooms (Like IRC)

    • Needs some sort of moderation hierarchy
    • Somewhat less need for privacy in the communication
      • as a note: you may want to have both private and public chat rooms,
        in which case, privacy may become more of an issue
    • Minimal need for user registration
      • The only reasons you may need user registration in this case is for
        moderation or privacy reasons
      • Like is often done on IRC networks, I’d make user registration
        optional

    One-on-One Chat (Like XMPP)

    • Typically needs encryption on all sides
    • Privacy is key
    • Authentication is very important (Unless you’re doing a chat-roulette
      type thing)
    • Moderation needs are minimal
      • About the only moderation tools you’ll need are something to prevent
        spam (which can be solved by simply not revealing user lists, and
        requiring users to approve of someone before that person can chat
        with them), and something to allow users to block other users

    Okay, so now that we’ve figured out what type of service you want to
    implement, we have to figure out the “how”.

    Pre-existing Standards

    • There’s lots of code out there, but…
    • Typically the standards are more complex than something you could roll
      yourself

      • The clear exception here is IRC, which is drop-dead simple to
        understand, although may actually be somewhat lacking in features
        for what you want to do
      • May contain extra things that you don’t care about (such as file-transfers
        in XMPP)

        • That doesn’t mean you actually have to support them, but it’s more pages
          of rfc documents that you have to look through

    Rolling Your Own Protocol

    • Potentially insecure, as you may not know what to look out for
    • Potentially lower up-front costs, higher long-term costs
      • What I mean by this is simply that when you roll it yourself, you save the
        time of having to look through a bunch of standards, but as a result, you
        may end up building a less robust system than you hoped
    • More easily customizable for your needs (granted you don’t mess things up,
      see previous point)

    Some Other Odds-and-Ends

    • You may want to make bots
      • Be careful about opening up an API for others to make bots though. This
        could be good or bad, depending on your community. People could use it for
        spam, or for great things. With great power comes great responsibility.
    • It’s possible to combine both a chatroom system and a one-to-one chat. IRC
      supports one-to-one chats, and XMPP supports chatrooms.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building a website. When I order my tags like this, LightCycle works but Lightbox
Building the same project (without any changes) produces binary different exe-files: some small regions
Building on what has been written in SO question Best Singleton Implementation In Java
I'm building a chat server with .NET. I have tried opening about 2000 client
I'm building a chat room application where new events are being polled for every
I was thinking of building a chat application in ASP .NET. I was thinking
How should I implement reverse AJAX when building a chat application in Django? I've
I have a small application that I am building a Chat application into, so
I'm building a live chat using JSJaC and ejabberd . It's all working except
I'm building a simple chat app with Rails. when a user types in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.