-
Notifications
You must be signed in to change notification settings - Fork 3
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
Chat Function #3
Comments
Question: do we want to abandon slack and implement chatrooms (group/individual) on the app itself? |
I just want to build a Chat 👍 with Meteor if we then use it as our own chat (when I understand that right?) is fine for me :) |
Ok, since this github repository is all about the app we're building together and these issues are feature suggestions, let's treat chat as a part of the app. Since we will have rooms of 5-7 people, we can actually start with using the collection api (mongodb) for delivering messages. But we can implement "streams" as an exercise for the "general" chatroom where the number of chat participants are likely to grow. Also, capped collections have a downside, you cannot remove indivdual documents from them. So a user cannot delete their own message! |
I have implemented the chat functionality with But I would love to see the I have a question to @serkandurusoy . Will we able to show a chat history if we use streams ? Or is it something like session so it doesn't store value in db, just streams for that session & values are lost as soon as window is closed. |
you can use streams to bypass mongodb so that's the idea. But, you can also take a tiered approach where messages get delivered using streams, but the server saves a copy, where the chatroom can load "earlier" messages on demand, through a meteor method |
cool, exactly what I wanted to know. thanks |
or we could skip the server roundtrip alltogether, and implement some webrtc functionality for the chats. That would lay the foundation for video/audio interaction aswell |
Specifications:
Ideas:
Check what Rocket Chat uses
look up mongodb documentation for capped collections for "xy days". alternatively, you can use a background task (percolate studio has a package called synced-cron) to delete old messages.
Check what Rocket Chat uses and how to integrate this multimedia feature
The text was updated successfully, but these errors were encountered: