Hello, I have read this page, and some video which wanted to create a real time chat in a web page with Phoenix channel help. But I never realized some things that are very basic and important.
when I just need to create a api for mobile developer, do I need to know js and write js for my project ? because I want to create a api, not html render?
if I don’t need js please tell me how to test my api which is created by websocket like postman app for json api.
I just found a lib for Mac Terminal that it’s name is
wscat, but after some second it is terminated, and I cant test more than it.
I found heartbeats or there was something, that Kept my connection a live, but I didn’t find something more than it
at last, I think Phoenix channel is like elixir GenServer, but I can’t start and test a api to learn it, and this is a problem I have no easy sampel code to create a api just this not more.
if you have a code that Handles easy task like a registration user Api and how to test with some soft in mac or terminal not a mobile app, please give me and help me