6 ms·
I think what you were looking for is Plug: https://github.com/elixir-lang/plug https://github.com/elixir-lang/plug I don't think there's a plug for websockets
by Xixi 12y ago
I think what you were looking for is Plug: https://github.com/elixir-lang/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.
- HashNuke 12y agoGoing by my experience, if you are using Websockets, choosing Phoenix would be a really good choice. There's a lot of work that's gone into transport adapters in Phoenix (websockets and recently polling support was also added). @peregrine and @chris_mccord did a lot of work as far as I can recall. I've been noticing that @JoseValim has joined in too. 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.