This commit is contained in:
Daniel Legt 2022-06-07 02:25:31 +03:00
parent becbf30752
commit 7982d564e8
1 changed files with 0 additions and 7 deletions

View File

@ -40,13 +40,6 @@ func BindSocket(router *gin.RouterGroup) {
func webSocketUpgrade(ctx *gin.Context, padName string) {
for name, values := range ctx.Request.Header {
// Loop over all values for the name.
for _, value := range values {
fmt.Println(name, value)
}
}
conn, err := wsUpgrader.Upgrade(ctx.Writer, ctx.Request, ctx.Request.Header)
if err != nil {
fmt.Printf("Failed to set websocket upgrade: %v\n", err)