(event any)
| 83 | } |
| 84 | |
| 85 | func (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 | |
| 94 | func (io *IO) IsShutdown() bool { |
| 95 | if io.Stream == nil { |