FLUTTER ECOSYSTEM

jamiewest/signalr_core

ASP.NET Core SignalR Dart Client

signalr_core project cover
Stars
93
Forks
82
Last push (UTC)
Sep 19, 2024
Project status
Active
Jamie West GitHub avatar
GITHUB User

Jamie West ↗

California
LanguagesDart

Technical topics

Packages published by this repository

Dependencies used

Dependency list 7 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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!']);