whixp 2.1.2+1 copy "whixp: ^2.1.2+1" to clipboard
whixp: ^2.1.2+1 copied to clipboard

Streamline your XMPP messaging with a lightweight Dart-based XMPP client

example/main.dart

import 'package:whixp/whixp.dart';

void main() {
  final whixp = Whixp(
    jabberID: 'vsevex@localhost/resource',
    password: 'passwd',
    logger: Log(enableWarning: true, enableError: true, includeTimestamp: true),
    internalDatabasePath: 'whixp',
    reconnectionPolicy: RandomBackoffReconnectionPolicy(1, 3),
  );

  /// Reconnect on disconnection.
  whixp.addEventHandler<TransportState>('state', (state) {
    if (state == TransportState.disconnected) whixp.connect();
  });
  whixp.connect();
}
2
likes
160
pub points
58%
popularity

Publisher

verified publishervsevex.me

Streamline your XMPP messaging with a lightweight Dart-based XMPP client

Repository (GitHub)
View/report issues

Topics

#xmpp #network #socket

Documentation

API reference

License

MIT (license)

Dependencies

connecta, crypto, dnsolve, hive, memoize, synchronized, unorm_dart, xml

More

Packages that depend on whixp