Files
n8n-openai-adapter/examples/gen_tcp_client.exs
T
2011-04-28 10:35:51 +02:00

4 lines
187 B
Elixir

% Start the server in examples/gen_tcp_server.ex and then run this file
{'ok, tcp} = GenTCP.connect("localhost", 5678, ['binary, {'packet, 0}])
'ok = tcp.send("Some Data")
'ok = tcp.close