-
Notifications
You must be signed in to change notification settings - Fork 17
fix ping schedule issue #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
EzyConnectionFailureEvent mevent = (EzyConnectionFailureEvent)event; | ||
Map map = new HashMap<>(); | ||
map.put("reason", mevent.getReason().toString()); | ||
map.put("reason", mevent.getReason().getId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sao ở dòng này là map.put("reason", mevent.getReason().getId());
. Mà ở dòng 61 lại là: map.put("reason", mevent.getReason());
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vì reason ở disconnection là int, còn của connection failure là enum em ạ
config.ping.pingPeriod = 1000; | ||
config.reconnect.maxReconnectCount = 10; | ||
config.reconnect.reconnectPeriod = 1000; | ||
// config.enableDebug = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lúc user muốn enable debug là phải uncomment chỗ này hả anh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
đúng rồi em ạ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ở các client sdk khác em thấy có đoạn:
if (localMessageQueue.Count > 0)
{
pingManager.setLostPingCount(0);
}
Nó nằm chỗ nào trong sdk flutter anh nhỉ (cả android và ios em đều ko thấy)
flutter không có em ạ, vì flutter gọi xuống các sdk c++ với android, 2 sdk này đã có phần check đó rồi em ạ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.