whixp 2.0.0-beta1 copy "whixp: ^2.0.0-beta1" to clipboard
whixp: ^2.0.0-beta1 copied to clipboard

Streamline Your XMPP Messaging with Lightweight Dart-Based XMPP Client

example/main.dart

import 'package:whixp/whixp.dart';

void main() {
  final whixp = Whixp(
    'vsevex@example.com/desktop',
    'passwd',
    host: 'example.com',
    logger: Log(enableError: true, enableWarning: true),
  );

  whixp.connect();
  whixp.addEventHandler('sessionStart', (_) {
    whixp.getRoster();
    whixp.sendPresence();
  });
}