Page MenuHomeWildfire Games

Engine js call IsXmppClientConnected for XmppClient
ClosedPublic

Authored by ffffffff on Jan 15 2018, 1:56 AM.

Details

Summary

States if xmpp client is connected or not.
Test connection

Test Plan

Test connection

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

ffffffff created this revision.Jan 15 2018, 1:56 AM
ffffffff updated this revision to Diff 5312.Jan 15 2018, 3:58 AM
ffffffff updated this revision to Diff 5313.

Order m_IsConnected=true/false set before sending gui message.

ffffffff updated this revision to Diff 5318.Jan 15 2018, 4:26 AM
elexis accepted this revision.Jan 15 2018, 5:28 AM

#4315 states that timeout handling basically doesn't exist. It's not a problem of this patch however.
This works for all intends and purposes.
Patch correct and complete. Function names are all good.
Thanks for the patch!

source/lobby/XmppClient.cpp
240–241

Crucial to set the bool before sending the message, so that the message can test for the correct state.

source/lobby/scripting/JSInterface_Lobby.cpp
1

2018 in all files

This revision is now accepted and ready to land.Jan 15 2018, 5:28 AM
This revision was automatically updated to reflect the committed changes.