pion / example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries
https://pion.ly/
MIT License
1.03k stars 243 forks source link

Echo rewrite for the sfu-ws example #140

Open NikhilSharmaWe opened 11 months ago

NikhilSharmaWe commented 11 months ago

Hey @at-wat @Sean-Der

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"}

Help needed in finding out what am I missing here, since relatively newer to working with echo.