MCPcopy Index your code
hub / github.com/Monibuca/engine / OnEvent

Method OnEvent

config/types.go:329–346  ·  view source on GitHub ↗
(event any)

Source from the content-addressed store, hash-verified

327}
328
329func (cfg *Engine) OnEvent(event any) {
330 switch v := event.(type) {
331 case []byte:
332 if cfg.reportStream != nil {
333 cfg.reportStream.Write(v)
334 cfg.reportStream.Write([]byte{0})
335 }
336 case context.Context:
337 util.RTPReorderBufferLen = uint16(cfg.RTPReorderBufferLen)
338 if cfg.Secret != "" && cfg.Server != "" {
339 if strings.HasPrefix(cfg.Console.Server, "wss") {
340 go cfg.WsRemote()
341 } else {
342 go cfg.WtRemote(v)
343 }
344 }
345 }
346}

Callers

nothing calls this directly

Calls 3

WsRemoteMethod · 0.95
WtRemoteMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected