signalr_netcore 1.4.0 signalr_netcore: ^1.4.0 copied to clipboard
A flutter client for ASP.NET Core SignalR. The client is able to invoke server side hub functions and to receive method invocations issued by the server.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add signalr_netcore
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
signalr_netcore: ^1.4.0
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:signalr_netcore/abort_controller.dart';
import 'package:signalr_netcore/binary_message_format.dart';
import 'package:signalr_netcore/default_reconnect_policy.dart';
import 'package:signalr_netcore/errors.dart';
import 'package:signalr_netcore/handshake_protocol.dart';
import 'package:signalr_netcore/http_connection.dart';
import 'package:signalr_netcore/http_connection_options.dart';
import 'package:signalr_netcore/hub_connection.dart';
import 'package:signalr_netcore/hub_connection_builder.dart';
import 'package:signalr_netcore/iconnection.dart';
import 'package:signalr_netcore/ihub_protocol.dart';
import 'package:signalr_netcore/iretry_policy.dart';
import 'package:signalr_netcore/itransport.dart';
import 'package:signalr_netcore/json_hub_protocol.dart';
import 'package:signalr_netcore/long_polling_transport.dart';
import 'package:signalr_netcore/msgpack_hub_protocol.dart';
import 'package:signalr_netcore/server_sent_events_transport.dart';
import 'package:signalr_netcore/signalr_client.dart';
import 'package:signalr_netcore/signalr_http_client.dart';
import 'package:signalr_netcore/text_message_format.dart';
import 'package:signalr_netcore/utils.dart';
import 'package:signalr_netcore/web_socket_transport.dart';
import 'package:signalr_netcore/web_supporting_http_client.dart';