cim_flutter_websocket_sdk 1.0.1
cim_flutter_websocket_sdk: ^1.0.1 copied to clipboard
A flutter websocket sdk for cim. Cim is a websocket based instant messaging protocol,support websocket protocol and socket protocol.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cim_flutter_websocket_sdk
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cim_flutter_websocket_sdk: ^1.0.1
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:cim_flutter_websocket_sdk/Message.pb.dart';
import 'package:cim_flutter_websocket_sdk/Message.pbenum.dart';
import 'package:cim_flutter_websocket_sdk/Message.pbjson.dart';
import 'package:cim_flutter_websocket_sdk/Message.pbserver.dart';
import 'package:cim_flutter_websocket_sdk/ReplyBody.pb.dart';
import 'package:cim_flutter_websocket_sdk/ReplyBody.pbenum.dart';
import 'package:cim_flutter_websocket_sdk/ReplyBody.pbjson.dart';
import 'package:cim_flutter_websocket_sdk/ReplyBody.pbserver.dart';
import 'package:cim_flutter_websocket_sdk/SentBody.pb.dart';
import 'package:cim_flutter_websocket_sdk/SentBody.pbenum.dart';
import 'package:cim_flutter_websocket_sdk/SentBody.pbjson.dart';
import 'package:cim_flutter_websocket_sdk/SentBody.pbserver.dart';
import 'package:cim_flutter_websocket_sdk/socket_io_connect.dart';