소스 검색

Adds some comments

Manu Mtz.-Almeida 10 년 전
부모
커밋
ee05b128a7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      sse-decoder.go

+ 1 - 0
sse-decoder.go

@@ -109,6 +109,7 @@ func (d *decoder) decode(r io.Reader) ([]Event, error) {
 			continue
 		}
 	}
+	// Once the end of the file is reached, the user agent must dispatch the event one final time.
 	d.dispatchEvent(currentEvent, dataBuffer.String())
 
 	return d.events, nil