FLUTTER ECOSYSTEM

jamiewest/signalr_core

ASP.NET Core SignalR Dart クライアント

signalr_core のプロジェクト画像
Stars
93
Forks
82
最終プッシュ(UTC)
2024/09/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!']);