MCPcopy
hub / github.com/gorilla/websocket / JoinMessages

Function JoinMessages

join.go:15–17  ·  view source on GitHub ↗

JoinMessages concatenates received messages to create a single io.Reader. The string term is appended to each message. The returned reader does not support concurrent calls to the Read method.

(c *Conn, term string)

Source from the content-addressed store, hash-verified

13// The string term is appended to each message. The returned reader does not
14// support concurrent calls to the Read method.
15func JoinMessages(c *Conn, term string) io.Reader {
16 return &joinReader{c: c, term: term}
17}
18
19type joinReader struct {
20 c *Conn

Callers 1

TestJoinMessagesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestJoinMessagesFunction · 0.68