I am trying to connect to Phoenix Channels from an Erlang Node. My gen server looks something like below, I get an ok when i run this. But I dont hear any messages back from phoenix channel/server. I am using handle_call, handle_cast and handle_info for listening messages from phoenix, Do I have to change arity of handle_call, handle_message and handle_info? Please help
start_link() ->
process_flag(trap_exit, true),
URL = "ws://localhost:14000/<my_channel_name>/websocket",
'Elixir.Phoenix.Channels.GenSocketClient':start_link(
?MODULE, 'Elixir.Phoenix.Channels.GenSocketClient.Transport.WebSocketClient', URL, [{user_id, atom_to_list(node())}], [{name, '<my_socket_client>'}]
).
init(URL) ->
'Elixir.Agent':start_link(fun() -> #{} end, [{name, '<my_agent_name>'}]),
{ok, [{connect, URL, [{"user_id", atom_to_list(node())}], #{}}]}.
handle_call(_Request, _From, State) ->
{reply, dummy, State}.
handle_cast(_Request, State) ->
{noreply, State}.
handle_info(Info, State) ->
{noreply, Info, State}.
terminate(_reason, _State) ->
ok.
code_change(_OldVersion, State, _Extra) ->
{ok, State}.






















