v1.1.2
signalr_core
Für Dart geschriebener, plattformunabhängiger ASP.NET Core SignalR-Client, der sowohl in der Befehlszeile als auch im Browser verwendet werden kann.
170Likes 880030-Tage-Downloads130Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Dart-Client für ASP.NET Core SignalR
^1.2.0^1.2.0^2.4.3^0.1.1^2.0.5^3.0.0^1.24.4Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. It's platform-independent, and can be used on both the command-line and the browser.
final connection = HubConnectionBuilder().withUrl('http://localhost:5000/chatHub',
HttpConnectionOptions(
logging: (level, message) => print(message),
)).build();
await connection.start();
connection.on('ReceiveMessage', (message) {
print(message.toString());
});
await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);