New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any example show how to send a message to erlang node? #24
Comments
Thanks for the question. I would recommend rewriting your erlang code to the OTP design patterns using gen_server behavior. The reason you don't receive the message because you didn't specify the correct pattern for that. Process.Call does the same as gen_server:call - a sending message has pattern There are 3 way to send a message:
As of your erlang code... here is how it should look like (if you don't want to follow OTP design)
|
Thanks a lot,I'll try it later |
Let's leave it open for the others who get the same question. |
Great, It works. erl:
go
|
erlang code:
I use simple/GenServer.go
process.Call(etf.Tuple{"kvs", "erlmain@localhost"}, etf.Term(etf.List{"weather", "fine"}))
can not recv the result from erlang node erlmain@localhost
The text was updated successfully, but these errors were encountered: