xmpp_plugin 1.1.2 copy "xmpp_plugin: ^1.1.2" to clipboard
xmpp_plugin: ^1.1.2 copied to clipboard

outdated

Xmpp plugin which helps to connect with xmpp via native channels and native libs like smack an>

xmpp_plugin #

  1. 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();

  1. Send message to one-one chat
await xmppConnection.sendMessageWithType("xyz@domain", "Hi", "MSGID");
  1. Receive message from server
Future _onReceiveMessage(dynamic event) async {
       // TODO : Handle the receive event
}
  1. Disconnect the xmppConnection
xmppConnection.logout();

To be Added #

  • Group chat
  • MAM
  • Presence
  • Last Activity
90
likes
0
pub points
79%
popularity

Publisher

verified publisherxrstudio.in

Xmpp plugin which helps to connect with xmpp via native channels and native libs like smack an>

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on xmpp_plugin