flutter_web_socket 1.0.3 flutter_web_socket: ^1.0.3 copied to clipboard
Flutter WebSocket Utils is a powerful package that simplifies WebSocket communication in Flutter applications. It provides a convenient API for establishing WebSocket connections, sending and receivin [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_web_socket
With Flutter:
$ flutter pub add flutter_web_socket
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_web_socket: ^1.0.3
Alternatively, your editor might support dart pub get
or 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_web_socket/flutter_web_socket.dart';