xmpp_plugin 0.0.1 xmpp_plugin: ^0.0.1 copied to clipboard
Flutter xmpp plugin developed with help of native channel using smack/xmppframework.
xmpp_plugin #
- Connect to the xmpp server
final param = {
"user_jid":"jid/resource",
"password": "password",
"host": "xmpphost",
"port": "5222"
};
XmppConnection xmppConnection = XmppConnection(param);
await xmppConnection.start(_onReceiveMessage, _onError);
await xmppConnection.login();
- Send message to one-one chat
await xmppConnection.sendMessageWithType("xyz@domain", "Hi", "MSGID");
- Receive message from server
Future _onReceiveMessage(dynamic event) async {
// TODO : Handle the receive event
}
- Disconnect the xmppConnection
xmppConnection.logout();
To be Added #
- Group chat
- MAM
- Presence
- Last Activity