MCPcopy Create free account
hub / github.com/Monibuca/engine / SetIO

Method SetIO

subscriber.go:146–151  ·  view source on GitHub ↗
(i any)

Source from the content-addressed store, hash-verified

144}
145
146func (s *Subscriber) SetIO(i any) {
147 s.IO.SetIO(i)
148 if s.Writer != nil && s.Config != nil && s.Config.WriteBufferSize > 0 {
149 s.Writer = bufio.NewWriterSize(s.Writer, s.Config.WriteBufferSize)
150 }
151}
152func (s *Subscriber) OnEvent(event any) {
153 switch v := event.(type) {
154 case Track: //默认接受所有track

Callers

nothing calls this directly

Calls 1

SetIOMethod · 0.65

Tested by

no test coverage detected