adaptor
adaptor copied to clipboard
Adaptor does not implement the hijacker on ResponseWriter
I would love this feature as well, I'm porting a codebase to fiber and do not want to reimplement all the websocket part for the moment.
netHTTPResponseWriter is very simple and does not implement http.Hijacker
.
I think it's better to open an issue in fasthttp
.
It's highly recommended to avoid using adaptor
.
@arsmn why is it recommended to avoid adaptor? And by whom?
Because of performance, by converting to the standard net http request or response, the allocations that fasthttp avoids are used.
This should be opened here: https://github.com/valyala/fasthttp/issues