pion / example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries

Home Page:https://pion.ly/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Echo rewrite for the sfu-ws example

NikhilSharmaWe opened this issue · comments

Hey @at-wat @Sean-Der

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

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