-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor chat system layer #1798
Comments
This is currently blocked by #1788, please do not do any work on it yet. |
Feature creep: add some action hooks, with toID and from ID plx ;) |
actually, make it a filter and include the message :D.. could think of a few cool use cases here. |
Feature creep: Be able to add users to a chat room... necessitates renaming of socket.io rooms 😛 |
#1788 is no longer blocking this issue. |
Problems with this is storing chat history becomes a pain in the neck. Previously it was just a list I don't think the Some data structures
Other stuff that needs to be figured out.
//end of brain derp |
Sound like something we should leave to v0.6.0 😆 |
I "moraly" support ! (No skillz in programing, and Javascript....duh) |
That's a great idea.. yes .. chat rooms :) |
Chat rooms will be good :) |
+1 here... would be a welcomed feature 👍 |
That have already be put on 0.6.0,also i think more noize around could be
|
Haha. NodeBB going to become a nextgen chat app. Time to remove all that code bloat we dont need in topics, categories etc :P |
Theoretically, we could simplify the entire chat layer by creating a hidden forum called "chats", and every time you start a chat, it creates a new topic in that category #baddesigndecisions |
imo time to rename this issue to "GROUP CHAT" :P We've already closed a few as dupes because this one isn't as searchable :P |
I say copy how Google Hangouts does it. |
sorry to bother, but any news on this guys? |
yes, group chat room will be great! any plan for the feature? |
Is anyone actively working on this? I'm currently evaluating NodeBB and the forums/groups look like exactly what I need but I also need private group chat as well as large chat rooms (IRC style) for with support for large user numbers (100+ per room) and I'm trying to get a gauge on how much NodeBB could cover. |
Nearly same question here ... I planned to write a (small) node.js based forum software by myself, as I found discourse and nodeBB (BTW I earn my money as software developer ...). My "brain concept" had a similar stucture in mind I found in nodeBB - that's great! But some functions are really missing - ok, private messaging is covered by User2User-Chat, that's fine, but group chat is a feature really needed. Why is it not possible to have chat between two groups, handled by the messenger.js, and a layer on top which handles the single users? Just a thought ... |
@mamuesp No reason, really. The system was envisioned to be user-to-user, and only after release did we learn that many users wanted group chats :) We could always tear the existing code down and re-write, but there is lots of code (incl. third-party contributor) code that we'd love to re-use, so it's more a matter of finding a sufficiently large block of time to dedicate to this. |
THX for the information. It's your project, so the user-to-user aspect has to be respected. As I'm courious, I'll analyze the "group chat" point a little more - perhaps we may discuss somethng later on. |
Thinking about how this (seemingly huge) task could be simplified. Perhaps re-use much of the code that already exists in NodeBB. Could group chats just be "private" categories, formatted to feel "chat-like" at the front-end? |
@pitaj lol |
They are different thinks. |
Hahah...
I'm going to admit that while it seems like a novel idea, in practice, it is likely end up closer to a square-peg-round-hole implementation. |
Haha, sorry for the bad idea :) |
Any update on this? It's still by far the largest missing feature IMO |
+1 for group messages |
Writing this down before I forget...
@barisusakli, it seems the current chat backend works like so, please correct me if I am wrong:
message
object, identified by anmid
is created, and themid
itself is appended to the list:messages:{fromUid}:{toUid}
It seems as though it would be easier if you were to use the rooms abstraction throughout, to manage the chats:
julian
(uid382
) chats withbaris
(uid859
), they enter (or re-enter) roomchat_382_859
, room id is constructed by ordering the uids in numerical order, and then separating them with underscores (see methods introduced in 7b31592)chat_382_859_1044
server.getUserSockets(someUid)
to determine receipient sockets to send chat notifications, just send the notification object to the room, because socket.io can do thatWorth it?
Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: