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

Method OnEvent

io.go:85–92  ·  view source on GitHub ↗
(event any)

Source from the content-addressed store, hash-verified

83}
84
85func (i *IO) OnEvent(event any) {
86 switch event.(type) {
87 case SEclose:
88 i.close(StopError{zap.String("event", "close")})
89 case SEKick:
90 i.close(StopError{zap.String("event", "kick")})
91 }
92}
93
94func (io *IO) IsShutdown() bool {
95 if io.Stream == nil {

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected