SignalrPlatformInterface class abstract

Implementers

Constructors

SignalrPlatformInterface(String baseUrl, String hubName, {String? queryString, Map<String, String>? headers, List<String>? hubMethods, Transport transport = Transport.auto, void statusChangeCallback(ConnectionStatus?)?, void hubCallback(String, String)?})

Properties

baseUrl String
final
connectionId String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
hubCallback → void Function(String, String)?
This callback gets called whenever SignalR server sends some message to client.
final
hubMethods List<String>?
List of Hub method names you want to subscribe. Every subsequent message from server gets called on hubCallback.
final
hubName String
final
queryString String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusChangeCallback → void Function(ConnectionStatus?)?
This callback gets called whenever SignalR connection status with server changes.
final
transport Transport
Transport.Auto is default.
final

Methods

connect() Future<String?>
Connect to the SignalR Server with given baseUrl & hubName.
invokeMethod(String methodName, {List<String>? arguments}) Future<String>
Invoke any server method with optional arguments.
isConnected() Future<bool>
Checks if SignalR connection is still active.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() Future<String?>
Try to Reconnect SignalR connection if it gets disconnected.
stop() Future<void>
Stops SignalR connection
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited