whixp 3.3.1 copy "whixp: ^3.3.1" to clipboard
whixp: ^3.3.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();
}
6
likes
60
points
379
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

License

MIT (license)

Dependencies

crypto, drift, ffi, memoize, path, path_provider, sqlite3_flutter_libs, synchronized, unorm_dart, xml

More

Packages that depend on whixp

Packages that implement whixp