Error returns an error if the client was stopped abruptly.
()
| 99 | |
| 100 | // Error returns an error if the client was stopped abruptly. |
| 101 | func (cli *socketClient) Error() error { |
| 102 | cli.mtx.Lock() |
| 103 | defer cli.mtx.Unlock() |
| 104 | return cli.err |
| 105 | } |
| 106 | |
| 107 | // SetResponseCallback sets a callback, which will be executed for each |
| 108 | // non-error & non-empty response from the server. |
no test coverage detected