flutter_mqchat 0.1.2 flutter_mqchat: ^0.1.2 copied to clipboard
MqChat client, this package enables you to use MQTT protocol as a chatting protocol, the broker should implement the HiveMq-Chat-Extension specifications.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_mqchat
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_mqchat: ^0.1.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_mqchat/chat_app.dart';
import 'package:flutter_mqchat/extensions/topics_extensions.dart';
import 'package:flutter_mqchat/flutter_chat_mqtt.dart';
import 'package:flutter_mqchat/generated_plugin_registrant.dart';
import 'package:flutter_mqchat/interfaces/archive_handler.dart';
import 'package:flutter_mqchat/interfaces/chat_events_sender.dart';
import 'package:flutter_mqchat/interfaces/client_handler.dart';
import 'package:flutter_mqchat/interfaces/invitations_handler.dart';
import 'package:flutter_mqchat/interfaces/message_global_reader.dart';
import 'package:flutter_mqchat/interfaces/message_sender.dart';
import 'package:flutter_mqchat/interfaces/muc_handler.dart';
import 'package:flutter_mqchat/models/base_message.dart';
import 'package:flutter_mqchat/models/base_message.g.dart';
import 'package:flutter_mqchat/models/chat_marker_message.dart';
import 'package:flutter_mqchat/models/chat_marker_message.g.dart';
import 'package:flutter_mqchat/models/chat_message.dart';
import 'package:flutter_mqchat/models/chat_message.g.dart';
import 'package:flutter_mqchat/models/enums.dart';
import 'package:flutter_mqchat/models/group_crud_message.dart';
import 'package:flutter_mqchat/models/group_crud_message.g.dart';
import 'package:flutter_mqchat/models/invitation_message.dart';
import 'package:flutter_mqchat/models/invitation_message.g.dart';
import 'package:flutter_mqchat/models/payload_with_topic.dart';
import 'package:flutter_mqchat/models/presence_message.dart';
import 'package:flutter_mqchat/models/presence_message.g.dart';
import 'package:flutter_mqchat/models/room_member.dart';
import 'package:flutter_mqchat/models/room_member.g.dart';
import 'package:flutter_mqchat/models/room_membership_message.dart';
import 'package:flutter_mqchat/models/room_membership_message.g.dart';
import 'package:flutter_mqchat/models/typing_indicator_message.dart';
import 'package:flutter_mqchat/models/typing_indicator_message.g.dart';
import 'package:flutter_mqchat/models/user.dart';
import 'package:flutter_mqchat/models/user.g.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_archive_handler.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_chat_events_sender.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_client.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_global_reader.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_invitation_handler.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_message_sender.dart';
import 'package:flutter_mqchat/mqtt_implementation/mqtt_muc_handler.dart';