Events returns a channel that receives raw messages and connection events
()
| 313 | |
| 314 | // Events returns a channel that receives raw messages and connection events |
| 315 | func (p *PsyNetRPC) Events() <-chan *Event { |
| 316 | return p.eventCh |
| 317 | } |
| 318 | |
| 319 | func (p *PsyNetRPC) sendEvent(eventType EventType, content string) { |
| 320 | select { |
no outgoing calls