Disconnected returns a channel that will be closed once the current connection is closed. This can happen due to an explicit call to Disconnect from the client, or due to non-temporary Read or Write errors encountered.
()
| 183 | // connection is closed. This can happen due to an explicit call to Disconnect |
| 184 | // from the client, or due to non-temporary Read or Write errors encountered. |
| 185 | func (s *Socket) Disconnected() <-chan struct{} { |
| 186 | return s.disconnected |
| 187 | } |
| 188 | |
| 189 | // isDisconnected is a non-blocking function to query whether a connection |
| 190 | // is disconnected or not. |
nothing calls this directly
no outgoing calls
no test coverage detected