
- OFFLINE DELIVERY OF MESSAGES EJABBERD REGISTRATION
- OFFLINE DELIVERY OF MESSAGES EJABBERD PASSWORD
- OFFLINE DELIVERY OF MESSAGES EJABBERD OFFLINE
# Aliases are shortcuts or tasks specific to the current project. # Type `mix help deps` for examples and options. # Specifies which paths to compile per environment.ĭefp elixirc_paths(:test), do: # Type `mix help compile.app` for more information.Įxtra_applications: This is my mix.exs defmodule ChatTest.MixProject doĬompilers: ++ Mix.compilers(),

I have tried to downgrade ejabberd but it does not seem to be working. So it would certainly not be a bad idea to take a look at the following book if you haven’t already: A JID has the following form: Make Ejabberd aware of the domain and set a random constant resource.Īt the end of the day, Ejabberd implements the XMPP protocol. Then, with a minimal amount of logic, you can make your client just construct the JID for authentication with Ejabberd und Ejabberd check the credentials. All you need to do is to store it in a way Ejabberd can access it. But you don’t even need to as you can reuse your existing auth. Q2: A JID needs to be generated only once per user. But it is difficult to say and depends on a lot of factors. If you want to store them on the server potentially indefinitely and make the client query them each time (like FB) then I would say Postgres is a better choice. Q1: If you store the messages only until they are delivered and then delete them - giving the client the responsibility to store them (like WA does it) then I would say mnesia is good choice. Q2) Do we generate JID again and again when user connects to the internet or it is generated only once when user first registers? Q1) Should i use MNESIA or Postgresql as Database? (For my reddit part i am using PostgreSQL) Now few additional questions that i have if anyone can answer them
OFFLINE DELIVERY OF MESSAGES EJABBERD PASSWORD
I already have implemented basic Auth system with email and password but for chat functionality i think i need to generate somekind of JID as well i guess?Įven after i generate JID lets say how do i implement these one-to-one and multi user chat in my application because Ejabberd docs are some what confusing to me. Researched a little bit more then i came to know about JID (Jabber ID) and then i realized (i might be wrong here) that Ejabberd basically calls functions likeĮjabberdctl send_message chat 192.168.33.50 “subject” “message from server”Īnd i guess here “ is acting like the JID. I have seen little bit of documentation and few implementation of Ejabberd in elixir but still not able to understand how am i going to implement one-to-one chat and multi user chat and also Video/Voice calls. Thats why i researched more and decided to go with Ejabberd.
OFFLINE DELIVERY OF MESSAGES EJABBERD OFFLINE
Like media transfers and how am i going to store messages for offline users and then deliver it. Initially i thought i could just work with Websockets but they don’t provide all the services i needed. I am almost done with the reddit part and decided to look into how am i going to implement the WA one. My application is what you could say is like Reddit + WA. # address.Alright let’s start with the simple stuff
OFFLINE DELIVERY OF MESSAGES EJABBERD REGISTRATION
# Think twice before enabling registration from any # network (see access_rules section above).

# Only accept registration requests from the "trusted" # Avoid buggy clients to make their bookmarks public Uncomment this when you have SQL configured:Īccess_max_user_messages: max_user_offline_messages # For small servers SQLite is a good fit and is very easy # Mnesia is limited to 2GB, better to use an SQL backend We all use the current Conversations on Android. I did not create a chat room and almost every thing (besides the user authentication thing) is the default. Here comes the problem: she can see the chat history of me and here son, which was/is the first non-admin user! And his chat history is cleartext while mine is not readable. Login is OK and we can chat with each other.

All went very well until today: I created a third account for my sister. I use a postgresql backend for my user database. A have tested ejabberd 20.03 on my Archlinux box for a few weeks now as a possible WhatsApp replacement within the family.
