qichatsdk_flutter 2.0.2 copy "qichatsdk_flutter: ^2.0.2" to clipboard
qichatsdk_flutter: ^2.0.2 copied to clipboard

A useful Dart library for QiChat.

This is a chat sdk developed by Teneasy pte,ltd.

Features #

  1. Chat with text, images, videos message.
  2. Pre-define question and answer.
  3. Web,iOS, Android, Desktop supported.

Getting started #

For testing features, just use testing parameters, keys provided in the example. for live use, please contact us.

Usage #


// Create an instance of ChatLib
final chatLib = ChatLib();

// Create an instance of your listener
final listener = MyChatListener();

// Assign the listener to the ChatLib delegate
chatLib.delegate = listener;

// Initialize the chat library with necessary parameters
chatLib.initialize(
userId: 230,
cert: "COYBEAUYASDyASiG2piD9zE.te46qua5ha2r-Caz03Vx2JXH5OLSRRV2GqdYcn9UslwibsxBSP98GhUKSGEI0Z84FRMkp16ZK8eS-y72QVE2AQ",
token: "",
baseUrl: "wss://csapi.hfxg.xyz/v1/gateway/h5",
sign: "9zgd9YUc",
);

// Now the listener will receive the delegate events
chatLib.callWebSocket();
0
likes
55
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A useful Dart library for QiChat.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

circular_countdown_timer, dio, dio_cache_interceptor, fixnum, flutter, http, protobuf, uuid, web_socket_channel

More

Packages that depend on qichatsdk_flutter