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?
I am building a chat feature inside a website, something like stackoverflow chat but
Share
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)
in which case, privacy may become more of an issue
moderation or privacy reasons
optional
One-on-One Chat (Like XMPP)
type thing)
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
yourself
understand, although may actually be somewhat lacking in features
for what you want to do
in XMPP)
of rfc documents that you have to look through
Rolling Your Own Protocol
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
see previous point)
Some Other Odds-and-Ends
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.
supports one-to-one chats, and XMPP supports chatrooms.