{"action":"opened","issue":{"url":"https://api.github.com/repos/tessel/t2-cli/issues/341","labels_url":"https://api.github.com/repos/tessel/t2-cli/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/tessel/t2-cli/issues/341/comments","events_url":"https://api.github.com/repos/tessel/t2-cli/issues/341/events","html_url":"https://github.com/tessel/t2-cli/issues/341","id":108521705,"number":341,"title":"Unhandled rejection Error: No response from server","user":{"login":"Student007","id":5132566,"avatar_url":"https://avatars.githubusercontent.com/u/5132566?v=3","gravatar_id":"","url":"https://api.github.com/users/Student007","html_url":"https://github.com/Student007","followers_url":"https://api.github.com/users/Student007/followers","following_url":"https://api.github.com/users/Student007/following{/other_user}","gists_url":"https://api.github.com/users/Student007/gists{/gist_id}","starred_url":"https://api.github.com/users/Student007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Student007/subscriptions","organizations_url":"https://api.github.com/users/Student007/orgs","repos_url":"https://api.github.com/users/Student007/repos","events_url":"https://api.github.com/users/Student007/events{/privacy}","received_events_url":"https://api.github.com/users/Student007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-27T08:30:30Z","updated_at":"2015-09-27T08:30:30Z","closed_at":null,"body":"When `seeker.on('tessel', ....)` is discovering a Tessel and the SSH client didn't got further responses from the found Tessel, there are additional events we have to listen to.\r\n**This issue is hard to be reproduced** but from my point of view this will be prevented by adding new event handlers to `lib/lan_connection.js` `LAN.Connection.prototype.open`\r\n\r\n### Error\r\n```\r\nUnhandled rejection Error: No response from server\r\n    at Socket.<anonymous> (/Users/{anonym}/github/t2-cli/node_modules/ssh2/lib/client.js:226:15)\r\n    at emitOne (events.js:82:20)\r\n    at Socket.emit (events.js:166:7)\r\n    at TCP.close (net.js:464:12)\r\n```\r\n### Possible solution based on\r\nAs [described](https://github.com/mscdex/ssh2#client-events) I added two additional event handlers:\r\n\r\n- end() - The socket was disconnected.\r\n- close(< boolean >hadError) - The socket was closed. hadError is set to true if this was due to error.\r\n\r\nI am going to prepare a pull request for discussion.\r\n"}}