You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@zhanglix is correct here and is one of the main reasons, in the newly merged overhaul of the websockets code on HTTP#master, I tried to move the WebSocket object and its API away from being IO-like. i.e. there's no eof(ws) method supported anymore because it's too easy to accidentally call this and it will just block forever waiting for a message to send. We now have a much more well-defined interface for how to work with a WebSocket object (check out the docs for ?WebSocket on HTTP#master!) which should lead to a much more predictable/convenient usage.
Julia 1.2.0
HTTP.jl 0.8.6
MbedTLS.jl 0.7.0
Hello. I am having an issue using the
eof
function of the WebSockets.Using the server provided in the Readme, and the following client:
The client hangs.
But if I put the
@show eof(ws)
under thewrite(ws, "Hello")
line, the code does not hang.The issue happens also if the eof is called after
readavailable(ws)
What am I missing?
The text was updated successfully, but these errors were encountered: