How to receive data from UDP port and show it on browser

HI, i want to receive the data from server via UDP port. Currently i used genserver and recieving it successfully but you know in GenServer call back function handle_in is receiving it. Now i don’t know how to show it on front end.

You would probably need to use something like plug to handle a request and in that request you get the data from the gen server to be rendered as json stream.

Chances are you need to use elixir’s stream library to stream the data to the endpoint. You will probably need websocket as well if it’s a constant stream of data.