@Override
public void onConnected() {
}
@Override
public void onDisconnected() {
}
@Override
public void onPublish(UTF8Buffer topic, Buffer body, Runnable ack) {
}
@Override
public void onFailure(Throwable value) {
}
});`
when it has connected to the server, then i close the server.
when i run it in pc, the onFailure() method can be called, but when i run it in the phone, the onFailure() can not be called.
why?
`connection.listener(new Listener() {
});` when it has connected to the server, then i close the server. when i run it in pc, the onFailure() method can be called, but when i run it in the phone, the onFailure() can not be called. why?