-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket integration #54
Comments
please checkout DandelionWebSockets and this PR as well: |
I'm by no means an expert, but I'd love to see websockets integration. Any pointers how to get started? Maybe I could try to help. Edit: I'm interested in seeing WSs integrated into the server. |
I've implemented a simple WebSockets client as a way to get test coverage of The API is like this... HTTP.WebSockets.open("wss://echo.websocket.org") do io
write(io, "Foo")
@test !eof(io)
@test String(readavailable(io)) == "Foo"
write(io, Vector{UInt8}("Hello"))
write(io, " There")
write(io, " World", "!")
closewrite(io)
buf = IOBuffer()
write(buf, io)
@test String(take!(buf)) == "Hello There World!"
close(io)
end https://github.com/samoconnor/HTTP.jl/blob/simplify_parser_branch/test/WebSockets.jl |
This now supports client and server WebSockets: https://github.com/JuliaWeb/HTTP.jl/blob/master/src/WebSockets.jl @EricForgy is also working on integreating HTTP.jl with the other WebSockets.jl package: https://github.com/JuliaWeb/WebSockets.jl/commits/change_dependencies |
Websockets client and server is now implemented here and over at WebSockets.jl. |
It'd be nice to support websocket upgrade requests in an HTTP.Server, as well as have websocket client functionality as well.
cc: @sarvjeethghotra
The text was updated successfully, but these errors were encountered: