cpass_flutter_sdk 1.0.2 copy "cpass_flutter_sdk: ^1.0.2" to clipboard
cpass_flutter_sdk: ^1.0.2 copied to clipboard

Dart and flutter package to use Comunia SDK. This version includes the APIs related to CHAT functionality only.

example/cpass_flutter_sdk_example.dart

import 'dart:io';

import 'package:cpass_flutter_sdk/src/comuia_client.dart';
import 'config.dart' as config;

void main() {
  var user1 = 'dart1';
  var client1 = ComuniaClient(config.URL, config.API_KEY, user1);
  client1.init().then((value) {
    print('client 1 initialized');
    client1.onNewMessage.listen((msg) {
      print('client 1 got the message');
      print(msg['from'] + ' :   ' +msg['text']);
    });  
  });  
}
2
likes
40
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

Dart and flutter package to use Comunia SDK. This version includes the APIs related to CHAT functionality only.

Homepage

License

BSD-3-Clause (license)

Dependencies

socket_io_client, uuid

More

Packages that depend on cpass_flutter_sdk