kataras / kataras/iris

The new version of iris.FromStd uses an error

Open
#1,831 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

```golang
func Hub() *iris.Application {

app := iris.New()

s := sse.New()

mvc.Configure(app.Party("/web"), func(mvc *mvc.Application) {
s.CreateStream("messages")
mvc.Router.Any("/events", iris.FromStd(s.HTTPHandler))
go func() {
ticker := time.NewTicker(time.Second * 2)
for range ticker.C {
fmt.Println("Time Out!")
s.Publish("messages",&sse.Event{
Data: []byte("ping"),
})
}
}()
mvc.Party("/audio").Register(services.NewAudioService()).Handle(new(web.AudioController))
})

return app
}
```

[HTTP Server] http: panic serving [::1]:52873: interface conversion: *context.responseWriter is not http.CloseNotifier: missing method CloseNotify

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.