Wait returns a channel that will be closed when the client is disconnected.
()
| 127 | |
| 128 | // Wait returns a channel that will be closed when the client is disconnected. |
| 129 | func (c *SSEClient) Wait() <-chan struct{} { |
| 130 | return c.stopCh |
| 131 | } |
| 132 | |
| 133 | // GetConnectStatus get connect status |
| 134 | func (c *SSEClient) GetConnectStatus() bool { |
no outgoing calls