ycy1164656 / signalr_core

ASP.NET Core SignalR Dart Client

Home Page:https://pub.dev/packages/signalr_core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

ASP.NET Core SignalR Dart Client

https://pub.dev/packages/signalr_core

License:MIT License


Languages

Language:Dart 100.0%