signalr_flutter 0.0.2 copy "signalr_flutter: ^0.0.2" to clipboard
signalr_flutter: ^0.0.2 copied to clipboard

outdated

A flutter plugin for .net SignalR client. This client is for ASP.Net SignalR, not for .Net Core SignalR.

signalr_flutter #

A flutter plugin for .net SignalR client.

Usage #

First of all, Initialize SignalR and connect to your server.

SignalR signalR = SignalR(
        '<Your server url here>',
        "<Your hub name here>",
        statusChangeCallback: (status) => print(status),
        hubCallback: (message) => print(message));
signalR.connect();

Here statusChangeCallback will get called whenever connection status with server changes.

hubCallback will receive calls from the server if you subscribe to any hub method. You can do that with,

signalR.subscribeToHubMethod("methodName");

You can also invoke any server method.

signalR.invokeMethod("<Your method name here>", arguments: ["argument"]);

For more info check example.

Any issue or PR is always welcome.

68
likes
0
pub points
87%
popularity

Publisher

verified publisherayan.asdevs.dev

A flutter plugin for .net SignalR client. This client is for ASP.Net SignalR, not for .Net Core SignalR.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on signalr_flutter