0 purchases
xmpp plugin
xmpp_plugin #
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();
copied to clipboard
Send message to one-one chat
await xmppConnection.sendMessageWithType("xyz@domain", "Hi", "MSGID");
await xmppConnection.sendGroupMessageWithType("[email protected]", "Hi", "MSGID");
copied to clipboard
Disconnect the xmppConnection
xmppConnection.logout();
copied to clipboard
Creating a MUC
xmppConnection.createMUC("groupName", true);
copied to clipboard
Joining MUC
xmppConnection.joinMucGroups(List<String> allGroupsId)
copied to clipboard
Sending Custom Message
await xmppConnection.sendCustomMessage("xyz@domain", "Hi", "MSGID","customTest");
await xmppConnection.sendCustomGroupMessage("[email protected]", "Hi", "MSGID","customText");
copied to clipboard
Sending Delivery Receipt
await flutterXmpp.sendDelieveryReceipt("xyz@domain", "Received-Message-Id", "Receipt-Id");
copied to clipboard
Adding members to MUC
await flutterXmpp.addMembersInGroup("groupName", List<String> allMembersId);
copied to clipboard
Adding admins to MUC
await flutterXmpp.addAdminsInGroup("groupName", List<String> allMembersId);
copied to clipboard
Get member list from the MUC
await flutterXmpp.getMembers("groupName");
copied to clipboard
Get Admin list from the MUC
await flutterXmpp.getAdmins("groupName");
copied to clipboard
Get Owner list from the MUC
await flutterXmpp.getOwners("groupName");
copied to clipboard
Remove members from the MUC
await flutterXmpp.removeMember("groupName", List<String> allMembersId);
copied to clipboard
Remove admins from group
await flutterXmpp.removeAdmin("groupName", List<String> allMembersId);
copied to clipboard
Get online member count from group
var onlineCount = await flutterXmpp.getOnlineMemberCount("groupName");
copied to clipboard
Get last activity of the jid
var lastseen = await flutterXmpp.getLastSeen(jid);
copied to clipboard
Get the list of my rosters
await flutterXmpp.getMyRosters();
copied to clipboard
Creating a roster entry
await flutterXmpp.createRoster(jid);
copied to clipboard
Join single MUC
await flutterXmpp.joinMucGroup(groupId);
copied to clipboard
Request MAM Messages
await flutterXmpp.requestMamMessages(userJid, requestSince, requestBefore, limit);
copied to clipboard
Update Typing Status
await flutterXmpp.changeTypingStatus(userJid, typingStatus);
copied to clipboard
Update Presence Type
await flutterXmpp.changePresenceType(presenceType, presenceMode);
copied to clipboard
Get Connection status
XmppConnectionState connectionStatus = await flutterXmpp.getConnectionStatus();
copied to clipboard
Get ErrorResponse Event
void onXmppError(ErrorResponseEvent errorResponseEvent) {
// TODO : Handle the Error Event
}
copied to clipboard
Get SuccessResponse Event
void onSuccessEvent(SuccessResponseEvent successResponseEvent) {
// TODO : Handle the Success Event
}
copied to clipboard
Get ChatMessage Event
void onChatMessage(MessageChat messageChat) {
// TODO : Handle the ChatMessage Event
}
copied to clipboard
Get GroupMessage status
void onGroupMessage(MessageChat messageChat) {
// TODO : Handle the GroupMessage Event
}
copied to clipboard
Get NormalMessage status
void onNormalMessage(MessageChat messageChat) {
// TODO : Handle the NormalMessage Event
}
copied to clipboard
Get PresenceChange status
void onPresenceChange(PresentModel presentModel) {
// TODO : Handle the PresenceChange Event
}
copied to clipboard
Get ChatStateChange status
void onChatStateChange(ChatState chatState) {
// TODO : Handle the ChatState Event
}
copied to clipboard
Get ConnectionEvent status
void onConnectionEvents(ConnectionEvent connectionEvent) {
// TODO : Handle the ConnectionEvent Event
}
copied to clipboard
Contact #
You can reach us via mail([email protected]) the if you have questions or need support.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.