v1.1.2
signalr_core
为 Dart 编写的跨平台、独立于平台的 ASP.NET Core SignalR 客户端,可在命令行和浏览器中使用。
170喜欢 8800近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
ASP.NET Core SignalR Dart 客户端
^1.2.0^1.2.0^2.4.3^0.1.1^2.0.5^3.0.0^1.24.4以下为英文项目原文快照,最新内容请访问 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!']);