简体   繁体   English

从Erlang节点调用rpc到Elixir节点

[英]Call rpc from Erlang node to Elixir node

I am trying to call rpc from Erlang to Elixir, I get: 我试图将rpc从Erlang呼叫到Elixir,我得到:

rpc:call(chat@localhost, 'Node' , 'list', []).

{badrpc,{'EXIT',{undef,[{'Node',list,[],[]},
                        {rpc,'-handle_call_call/6-fun-0-',5,
                             [{file,"rpc.erl"},{line,197}]}]}}}

Whats the proper syntax for achieving this simple call? 实现此简单调用的正确语法是什么?

When Elixir code gets compiled, the module names actually become Elixir.Module . 编译Elixir代码后,模块名称实际上变为Elixir.Module So in order to call an Elixir module from Erlang, you will need to use 'Elixir.Module' . 因此,为了从Erlang调用Elixir模块,您将需要使用'Elixir.Module' In this case, 在这种情况下,

rpc:call('chat@localhost', 'Elixir.Node', list, [])

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM