Skip to content

Conversation

tvd12
Copy link
Member

@tvd12 tvd12 commented Sep 5, 2021

No description provided.

@tvd12 tvd12 requested a review from vu-luong September 5, 2021 04:06
EzyConnectionFailureEvent mevent = (EzyConnectionFailureEvent)event;
Map map = new HashMap<>();
map.put("reason", mevent.getReason().toString());
map.put("reason", mevent.getReason().getId());
Copy link
Member

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());

Copy link
Member Author

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;
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

đúng rồi em ạ

Copy link
Member

@vu-luong vu-luong left a 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)

@tvd12
Copy link
Member Author

tvd12 commented Sep 7, 2021

Ở 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 ạ

Copy link
Member

@vu-luong vu-luong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tvd12 tvd12 merged commit b4ad2a3 into master Sep 7, 2021
@tvd12 tvd12 deleted the fix-ping-schedule-issue branch July 9, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants