I’m working on an embedded project that will collect data from a system of sensors, do some minimal processing and, among other things, stream data to a number of devices including phones, tablets and laptops. For this last requirement I was thinking WiFi and websockets. What I don’t need, however, is an entire framework.
I was reading about this:
But I’m wondering, could that be enough to implement websocket connectivity to a number of clients? It could work as peer to peer. At the device end (my device) I was thinking there would be a process to handle each connected client and each of these would periodically push data through the socket.
I’m just trying to avoid extra complexity and bloat.
Cowboy has websocket support built in, and you can use Plug to make a clean interface. I’ve still yet to jump into Phoenix and this works great for me.