These are chat archives for gin-gonic/gin

8th
Nov 2017
Shivaprasad Bhat
@spy16
Nov 08 2017 14:32
I am trying to use Server-Sent Events in Gin.. In a simple gin application setting, i am trying ctx.SSEvent("test", map[string]string{"hello": "word"}).. And to see the events, i am using CURL.. But no response received in curl.. is there any buffering being done for SSEvents ? what am i doing wrong ?..
Derek Robati
@drobati
Nov 08 2017 15:52
For a PUT should I just create another struct, where id is not required (since I get it from the c.Params) or assign id to the struct then do binding, or something cool I'm just entirely missing
assigning the id to the struct field then running shouldbind worked pretty well