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();
}
5
likes
160
points
28
downloads

Publisher

verified publishervsevex.me

Weekly Downloads

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