Добавил получение последней странички МАМ Добавил удаление ростера
- Connect to the xmpp server
final param = {
"user_jid":"jid/resource",
"password": "password",
"host": "xmpphost",
"port": "5222",
"nativeLogFilePath": "filepath",
"requireSSLConnection": true,
"autoDeliveryReceipt": true,
"useStreamManagement": false,
"automaticReconnection": true,
};
XmppConnection xmppConnection = XmppConnection(param);
await xmppConnection.start(_onError);
await xmppConnection.login();
- Send message to one-one chat
await xmppConnection.sendMessageWithType("xyz@domain", "Hi", "MSGID");
await xmppConnection.sendGroupMessageWithType("[email protected]", "Hi", "MSGID");
- Disconnect the xmppConnection
xmppConnection.logout();
- Creating a MUC
xmppConnection.createMUC("groupName", true);
- Joining MUC
xmppConnection.joinMucGroups(List<String> allGroupsId)
- Sending Custom Message
await xmppConnection.sendCustomMessage("xyz@domain", "Hi", "MSGID","customTest");
await xmppConnection.sendCustomGroupMessage("[email protected]", "Hi", "MSGID","customText");
- Sending Delivery Receipt
await flutterXmpp.sendDelieveryReceipt("xyz@domain", "Received-Message-Id", "Receipt-Id");
- Adding members to MUC
await flutterXmpp.addMembersInGroup("groupName", List<String> allMembersId);
- Adding admins to MUC
await flutterXmpp.addAdminsInGroup("groupName", List<String> allMembersId);
- Get member list from the MUC
await flutterXmpp.getMembers("groupName");
- Get Admin list from the MUC
await flutterXmpp.getAdmins("groupName");
- Get Owner list from the MUC
await flutterXmpp.getOwners("groupName");
- Remove members from the MUC
await flutterXmpp.removeMember("groupName", List<String> allMembersId);
- Remove admins from group
await flutterXmpp.removeAdmin("groupName", List<String> allMembersId);
- Get online member count from group
var onlineCount = await flutterXmpp.getOnlineMemberCount("groupName");
- Get last activity of the jid
var lastseen = await flutterXmpp.getLastSeen(jid);
- Get the list of my rosters
await flutterXmpp.getMyRosters();
- Creating a roster entry
await flutterXmpp.createRoster(jid);
- Join single MUC
await flutterXmpp.joinMucGroup(groupId);
- Request MAM Messages
await flutterXmpp.requestMamMessages(userJid, requestSince, requestBefore, limit);
- Update Typing Status
await flutterXmpp.changeTypingStatus(userJid, typingStatus);
- Update Presence Type
await flutterXmpp.changePresenceType(presenceType, presenceMode);
- Get Connection status
XmppConnectionState connectionStatus = await flutterXmpp.getConnectionStatus();
- Get ErrorResponse Event
void onXmppError(ErrorResponseEvent errorResponseEvent) {
// TODO : Handle the Error Event
}
- Get SuccessResponse Event
void onSuccessEvent(SuccessResponseEvent successResponseEvent) {
// TODO : Handle the Success Event
}
- Get ChatMessage Event
void onChatMessage(MessageChat messageChat) {
// TODO : Handle the ChatMessage Event
}
- Get GroupMessage status
void onGroupMessage(MessageChat messageChat) {
// TODO : Handle the GroupMessage Event
}
- Get NormalMessage status
void onNormalMessage(MessageChat messageChat) {
// TODO : Handle the NormalMessage Event
}
- Get PresenceChange status
void onPresenceChange(PresentModel presentModel) {
// TODO : Handle the PresenceChange Event
}
- Get ChatStateChange status
void onChatStateChange(ChatState chatState) {
// TODO : Handle the ChatState Event
}
- Get ConnectionEvent status
void onConnectionEvents(ConnectionEvent connectionEvent) {
// TODO : Handle the ConnectionEvent Event
}
You can reach us via mail([email protected]) the if you have questions or need support.