adbkit-monkey
adbkit-monkey copied to clipboard
end/done/quit
I'm not quite clear on the difference between these three methods. Would it be possible to add some more information regarding them?
The docs seem clear enough to me but I'm heavily biased as I wrote them. PRs welcome.
All 3 methods are available on the client instance. The client itself is nothing more than a connection to the monkey server.
.end(): Sends no command to monkey. Causes the client to disconnect from the server. .done(): This is in the monkey protocol. This should cause the server to close the connection you had open. Monkey server will (usually) stay up and running waiting for a new client to connect, but not always depending on device. .quit(): This is in the monkey protocol. Requests the monkey server to exit after closing connections. Will not stay running for any future clients.
.end()'s behavior isn't well defined since it isn't really part of the protocol. I'd expect it to be the same as .done(), but especially on older devices it may behave differently.
Note that the code is old and mostly unmaintained. Monkey did not work for our use case so we created minitouch instead.
On Wed, Feb 22, 2017 at 1:15 Michael Davis [email protected] wrote:
I'm not quite clear on the difference between these three methods. Would it be possible to add some more information regarding them?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstf/adbkit-monkey/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_ZVq3cMeyOrwjPjKonPRKeIZYsOoks5rew1xgaJpZM4MHhmc .