I just had to add the following function to get it working, is there any better solution maybe?
def handle_info({:count, count}, socket) do
{:noreply, assign(socket, val: count)}
end
I just had to add the following function to get it working, is there any better solution maybe?
def handle_info({:count, count}, socket) do
{:noreply, assign(socket, val: count)}
end