I think what you were looking for is Plug: https://github.com/elixir-lang/plug
I don't think there's a plug for websockets out of the box, but it's not hard to hook them on Cowboy directly.
I don't think there's a plug for websockets out of the box, but it's not hard to hook them on Cowboy directly.
That said, I would love some websockets stuff refactored out of Phoenix into a Plug so that it can be used even without Phoenix. I'm not sure about the amount of work that would require.