We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need iris mvc use r3labs/sse examples
The text was updated successfully, but these errors were encountered:
var Sse = sse.New() func init() { Sse.CreateStream("messages") } func SsePublish(id string, str string) { Sse.Publish(id, &sse.Event{ Data: []byte(str), }) }
mvc.New(app.Party("/api/sse", iris.FromStd(common.Sse.HTTPHandler))). Register(api.SessManager.Start). Handle(new(v1App.AppSseController))
type AppSseController struct { api.AppController } func (c *AppSseController) Get(b mvc.BeforeActivation) { c.Ctx.Next() common.SsePublish("messages", "pingaaa") c.Ctx.Next() app.Events(c.Ctx) }
no return sse data "pingaaa"
Sorry, something went wrong.
No branches or pull requests
need iris mvc use r3labs/sse examples
The text was updated successfully, but these errors were encountered: