有人可以详细告诉我下列方法的确切用法吗?
XMPPTCPConnection.setUseStreamManagementDefault(false);
XMPPTCPConnection.setUseStreamManagementResumptiodDefault(false);
XMPPTCPConnection.setUseStreamManagementResumption(false);
我希望用户在互联网连接丢失时离线。
我在服务器上实现了mod_ping,如下所示
[{send_pings, true}, {ping_interval, 2},
{ping_ack_timeout, 2},
{timeout_action, kill}]
答案 0 :(得分:1)
XMPPTCPConnection.setUseStreamManagementDefault(false);
// Set if Stream Management should be used by default for new connections.
XMPPTCPConnection.setUseStreamManagementResumptiodDefault(false);
// Set if Stream Management resumption should be used by default for new connections.
XMPPTCPConnection.setUseStreamManagementResumption(false);
// Set if Stream Management resumption should be used if supported by the server.
有关详细信息,请查看here