socketry / async-websocket

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

Is duplex mode awailable #35

Closed AskarZinurov closed 2 years ago

AskarZinurov commented 2 years ago

Hi, @ioquatix! First of all I want to thank you for such awesome job on async ruby gems here. I hope much of your work will go to ruby std lib 🤞 I am playing with Falcon and async-websockets and trying to implement some kind of pub/sub functionality. I was faced with problem what websocket connection becomes blocked by message = connection.read code. I mean what I cannot write to it or set a read timeout to break fiber from stuck. This happens because websocket behaves like usual socket and can be used only one way at a time?