MongooseIM
MongooseIM copied to clipboard
Please reopen: Add support for elixir #373
MongooseIM version: (put the version) Installed from: (source or pkg) Erlang/OTP version: (put the version)
Describe the issue.
Where is the branch phoenix-integration ? I can't find it now.
I am reading this: https://github.com/kevinblade/phoenix-mim I like to have access like that: iex> :ejabberd_auth.try_register("username", "localhost", "password")
Even can run MIM in standalone mode, but would like to using: iex> :ejabberd_auth.try_register("username", "localhost", "password")
Please help on this.
Hi @9to1url, thanks for raising the issue. Is the elixir shell the only motivation for adding support for Elixir, or do you have another use case in mind?
Not really. I have a Phoenix app, but just implement chat use channel/pubsub I think too naive and also too much work for me. I think install MIM standalone and adding web interface in Phoenix app is the way to go. So I need able in my phx app control MIM like create user group, add user to group, ban user etc. Also I want implement extra protocol Signal like secure msg.
On Tue, May 5, 2020, 2:59 PM Michał Piotrowski [email protected] wrote:
Hi @9to1url https://github.com/9to1url, thanks for raising the issue. Is the elixir shell the only motivation for adding support for Elixir, or do you have another use case in mind?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esl/MongooseIM/issues/2723#issuecomment-624244590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL2XV5GSU3V6K5FJYUAUZ3RQBO2PANCNFSM4MTOGZ3Q .
And I also know that ejabberd can embedded in phx/elixir app and can develop module in elixir, but I just don't want vendor lock in so resort to MIM for solution.
We currently not planning to add Elixir support to reduce complexity of supporting two languages. But you can still use an Elixir project with MongooseIM - you can start them in different erlang virtual machines and use RPC calls to communicate between them. https://www.erlang.org/doc/man/rpc.html