socketry / async-websocket

Asynchronous WebSocket client and server, supporting HTTP/1 and HTTP/2 for Ruby.
MIT License
166 stars 18 forks source link

Integration with Stimulus Reflex ? #28

Closed nic-lan closed 3 years ago

nic-lan commented 3 years ago

Hi,

very cool project.

I noticed that a rails adapter has been recently added and that it has been used in one of the examples provided in the live gem.

Since live gem readme is linking stimulus-reflex, i would like to know if there is any plan and/or interest to somehow allow integration of async-websocket with it ( as a cable-ready alternative for example ) or the idea here is more likely to extend live gem to be a full alternative to stimulus-reflex.

Thank you.

ioquatix commented 3 years ago

I think there are some plans to do this but it's not something I'm personally planning to implement right now. The way I see it, provided SR is not depending on ActionCable as a bridge, it should be totally feasible to use SR in the same way - i.e.

However if SR is depending on the ActionCable interface, it may become more tricky. I don't know the details.

ioquatix commented 3 years ago

Regarding live becoming an alternative to SR. I'm not sure what you mean by "full". Basically, live is, for what it's worth, feature complete. We will certainly continue to develop it, but from my point of view, but I think the problem space is fairly well understood and it's more a matter of reducing friction than designing new abstractions.

nic-lan commented 3 years ago

I understand.
thank you.

I'm not sure what you mean by "full".

it was not exactly the best phrasing. apologies for that.