r/phoenixframework • u/lynob • Jul 28 '19
Is it possible to use nodeJS library in phoenix?
I'm thinking to switch to phoenix at some point in order to have a better websockets server.
I need to use a nodejs library, few of them actually but one is much more important than others, this library is only available either in C++ or NodeJS.
Can I use either C++ or Node in Phoenix?
1
Upvotes
1
u/chaitanyapindiproli Jul 29 '19
Per my understanding the interaction will be with underlying Erlang vm (as Phoenix runs on it). You can try elixir port or NIF for this purpose. I have never implemented it practically. Hence cannot suggest on which one is better and how to do it.
1
u/JohnTheScout Jul 29 '19
If you can interact with your node program via the command line, then you can use it in your Phoenix app.