Echo rewrite for the sfu-ws example
NikhilSharmaWe opened this issue · comments
-
I am working on a video conference application. I inspired my video conference handling with the
sfu-ws
example. -
But I am using
echo
framework instead in my application, which causing some problems.
When I get to the meeting page, everything works fine but when I leave the meeting page, the server logs this hijack error
for the echo response writer:
echo: http: response.WriteHeader on hijacked connection from github.com/labstack/echo/v4.(*Response).WriteHeader (response.go:63)
echo: http: response.Write on hijacked connection from github.com/labstack/echo/v4.(*Response).Write (response.go:75)
{"time":"2023-09-22T01:26:57.800164+05:30","level":"ERROR","prefix":"echo","file":"echo.go","line":"463","message":"http: connection has been hijacked"}
- To make sure I made changes in the sfu-ws example to using the echo for the web server: https://gist.github.com/NikhilSharmaWe/635fcfeae4119cfd3977fbeb18599ccd. And the same error is logged with this case too.
Help needed in finding out what am I missing here, since relatively newer to working with echo.