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. 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. Remember: that auth cache information is deleted when ejabberd stops.Alright let’s start with the simple stuff Just for curiosity, you can view the list of registered accounts (in fact it's only the list of auth cached accounts.) This will ensure extauth is run for that account, and the auth cache stores this hint:Įjabberdctl check_account user123 localhost Run this command for every account you want to export. Get the list of registered accounts yourself, manually, in some wayĮnable auth_use_cache in ejabberd and restart The good news: there's a way you can fill the auth cache with the accounts: The problem is that you would need to wait for all the registered accounts to login and leave that cached information in ejabberd. Wait a few days or weeks, and later when you request the list of "registered accounts", ejabberd reads that auth cache and uses it. One solution would be to enable the option auth_use_cache so that each login attempt gives a hint that ejabberd stores.
0 Comments
Leave a Reply. |