项目作者: jamiewest

项目描述 :
ASP.NET Core SignalR Dart Client
高级语言: Dart
项目地址: git://github.com/jamiewest/signalr_core.git
创建时间: 2019-12-08T00:47:06Z
项目社区:https://github.com/jamiewest/signalr_core

开源协议:MIT License

下载


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

  1. final connection = HubConnectionBuilder().withUrl('http://localhost:5000/chatHub',
  2. HttpConnectionOptions(
  3. logging: (level, message) => print(message),
  4. )).build();
  5. await connection.start();
  6. connection.on('ReceiveMessage', (message) {
  7. print(message.toString());
  8. });
  9. await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);