FLUTTER ECOSYSTEM

jamiewest/signalr_core

ASP.NET Core SignalR Dart 客户端

signalr_core 项目封面
Stars
93
Forks
82
最近推送(UTC)
2024年9月19日
项目状态
未归档
Jamie West GitHub avatar
GITHUB User

Jamie West ↗

California
语言Dart

技术话题

此仓库发布的插件

使用的依赖

依赖清单 7 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Introduction

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.

Example

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!']);