signalr_core_new 1.0.3 copy "signalr_core_new: ^1.0.3" to clipboard
signalr_core_new: ^1.0.3 copied to clipboard

ASP.NET Core SignalR Client written for Dart that is platform-independent, and can be used on both the command-line and the browser.

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!']);
1
likes
150
points
233
downloads

Publisher

unverified uploader

Weekly Downloads

ASP.NET Core SignalR Client written for Dart that is platform-independent, and can be used on both the command-line and the browser.

Documentation

API reference

License

MIT (license)

Dependencies

equatable, http, logging, sse_channel, web_socket_channel

More

Packages that depend on signalr_core_new