MCPcopy Create free account
hub / github.com/koding/kite / newFrameReader

Function newFrameReader

sockjsclient/xhr.go:336–341  ·  view source on GitHub ↗
(r io.Reader, timeout time.Duration)

Source from the content-addressed store, hash-verified

334}
335
336func newFrameReader(r io.Reader, timeout time.Duration) *frameReader {
337 return &frameReader{
338 r: bufio.NewReader(r),
339 timeout: timeout,
340 }
341}
342
343func (fr *frameReader) Read(p []byte) (int, error) {
344 fr.once.Do(fr.readFrame)

Callers 2

DialXHRFunction · 0.85
handleRespMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected