MongooseIM icon indicating copy to clipboard operation
MongooseIM copied to clipboard

Please reopen: Add support for elixir #373

Open 9to1url opened this issue 4 years ago • 5 comments

MongooseIM version: (put the version) Installed from: (source or pkg) Erlang/OTP version: (put the version)

Describe the issue.

9to1url avatar Apr 29 '20 06:04 9to1url

Where is the branch phoenix-integration ? I can't find it now.

9to1url avatar Apr 29 '20 13:04 9to1url

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.

9to1url avatar Apr 29 '20 13:04 9to1url

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?

michalwski avatar May 05 '20 18:05 michalwski

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 .

9to1url avatar May 05 '20 19:05 9to1url

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.

9to1url avatar May 05 '20 19:05 9to1url

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

arcusfelis avatar Apr 27 '23 12:04 arcusfelis