When I am connected to an SSE handler and I receive events, for some reason cowboy sends me in the first two cases a no fin message with the complete event, but in the third case I get a no fin message with many events. If you check the third message you will see that it has many \n\ndata. I do know if this is ok or not. I thought that gun would split each sse event into a different message. If this is not the case I should buffer all the events and then split it by myself.
It would be great if you could let me know if this is a bug or if I need to detect each sse event by myself.
Regards.
IsFin: nofin
StreamRef: #Ref<0.0.0.260017>
Message: <<"data: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:27:56Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"466f6e1d-a614-429d-a3e3-c9ab5455a81c\",\"event\":{\"tigertext:iq:client_advisory\":{\"xmlns\":\"tigertext:iq:client_advisory\",\"advisory\":{\"name\":\"replay_start\",\"replay_message_count\":19}}}}}\n\n">>
IsFin: nofin
StreamRef: #Ref<0.0.0.185341>
Event: <<"data: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:19:43Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"aca5df83-4697-46c5-822a-43f9be32872e\",\"event\":{\"tigertext:iq:update\":{\"xmlns\":\"tigertext:iq:update\",\"entities\":[{\"xmlns\":\"tigertext:entity:group\",\"token\":\"6eGmPWCpTHOTnfH4lx2omA\",\"name\":[],\"members\":[\"test\",\"test\"]}]}}}}\n\n">>
IsFin: nofin
StreamRef: #Ref<0.0.0.185341>
Event: <<"data: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:19:43Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"2aa5f747-c27b-472b-a055-6b4e785243f2\",\"event\":{\"tigertext:iq:update\":{\"xmlns\":\"tigertext:iq:update\",\"entities\":[{\"xmlns\":\"tigertext:entity:group\",\"token\":\"X2hSUFfESp6xje54_TnUYA\",\"name\":[],\"members\":[\"test\",\"test\"]}]}}}}\n\ndata: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:19:43Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"e3d511e8-3c2a-40ef-b91c-24ef737d2349\",\"event\":{\"tigertext:iq:update\":{\"xmlns\":\"tigertext:iq:update\",\"entities\":[{\"xmlns\":\"tigertext:entity:group\",\"token\":\"0aFq0GzAQ6a3YII0HLRR3w\",\"name\":[],\"members\":[\"test\",\"test\"]}]}}}}\n\ndata: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:19:43Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"a96622df-4c4a-47c1-93f7-a9f53c120449\",\"event\":{\"tigertext:iq:update\":{\"xmlns\":\"tigertext:iq:update\",\"entities\":[{\"xmlns\":\"tigertext:entity:group\",\"token\":\"sIKFXV_fSzW5rtRkro22wQ\",\"name\":[],\"members\":[\"test\",\"test\"]}]}}}}\n\ndata: {\"tigertext_api\":{\"version\":\"1.0\",\"timestamp\":\"2014-7-24T15:19:43Z\",\"app\":\"http_sse\",\"app_version\":\"1.0\",\"event_id\":\"a0bd94c2-b851-40ed-a1b1-cf4014eaa7eb\",\"event\":{\"tigertext:iq:update\":{\"xmlns\":\"tigertext:iq:update\",\"entities\":[{\"xmlns\":\"tigertext:entity:group\",\"token\":\"8iQz-VlGR7KC22mCv87BAg\",\"name\":[],\"members\":[\"test\",\"test\"]}]}}}}\n\ndata: {\"tigertext_api\":{\"version\":\"1.0\",\"timest">>