Original post

So im trying to use socket io with go and angular but i have that error
Error
image
Go Code

server, err := socketio.NewServer(nil)

if err != nil {

    log.Fatal(err)

}

server.OnConnect("/", func(s socketio.Conn) error {

    s.SetContext("")

    fmt.Println("connected:", s.ID())

    return nil

})

server.OnEvent("/", "message", func(s socketio.Conn, msg string) {

    fmt.Println("notice:", msg)

    s.Emit("response", "Nuevo Pedido")

})

server.OnEvent("/chat", "msg", func(s socketio.Conn, msg string) string {

    s.SetContext(msg)

    return "recv " + msg

})

server.OnEvent("/", "bye", func(s socketio.Conn) string {

    last := s.Context().(string)

    s.Emit("bye", last)

    s.Close()

    return last

})

server.OnDisconnect("/", func(s socketio.Conn, msg string) {

    fmt.Println("closed", msg)

})

router.GET("/socket.io/*any", gin.WrapH(server))

router.POST("/socket.io/*any", gin.WrapH(server))

// router.Handle("WSS", "/socket.io", []gin.HandlerFunc{SocketHandler})

//SERVER PORT

router.Run(":5000")

}