All Projects → BlazorExtensions → Signalr

BlazorExtensions / Signalr

Licence: mit
SignalR Core support for Microsoft ASP.NET Core Blazor

Projects that are alternatives of or similar to Signalr

Fshistory
Play and Enjoy the History of Microsoft Flight Simulator
Stars: ✭ 163 (-9.44%)
Mutual labels:  webassembly
Carton
📦 Watcher, bundler, and test runner for your SwiftWasm apps
Stars: ✭ 171 (-5%)
Mutual labels:  webassembly
Waforth
A bootstrapping dynamic Forth Interpreter/Compiler for WebAssembly
Stars: ✭ 176 (-2.22%)
Mutual labels:  webassembly
Aspnetcoreangularsignalr
SignalR ASP.NET Core Angular
Stars: ✭ 163 (-9.44%)
Mutual labels:  signalr
Vecty
Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
Stars: ✭ 2,161 (+1100.56%)
Mutual labels:  webassembly
Aspnetcoreangularsignalrsecurity
Security with ASP.NET Core, SignalR and Angular
Stars: ✭ 171 (-5%)
Mutual labels:  signalr
Wain
WebAssembly implementation from scratch in Safe Rust with zero dependencies
Stars: ✭ 160 (-11.11%)
Mutual labels:  webassembly
Wag
WebAssembly compiler implemented in Go
Stars: ✭ 177 (-1.67%)
Mutual labels:  webassembly
Wasm Micro Runtime
WebAssembly Micro Runtime (WAMR)
Stars: ✭ 2,440 (+1255.56%)
Mutual labels:  webassembly
Alchemyvm
WebAssembly Virtual Machine Built In Elixir
Stars: ✭ 176 (-2.22%)
Mutual labels:  webassembly
Logging
Microsoft Extension Logging implementation for Blazor
Stars: ✭ 165 (-8.33%)
Mutual labels:  webassembly
Wasmvm
An unofficial standalone WebAssembly process virtual machine
Stars: ✭ 164 (-8.89%)
Mutual labels:  webassembly
Signalchat
WPF-MVVM instant messaging application using SignalR
Stars: ✭ 172 (-4.44%)
Mutual labels:  signalr
Wasm Pdf
Generate PDF files with JavaScript and WASM (WebAssembly)
Stars: ✭ 163 (-9.44%)
Mutual labels:  webassembly
Tdl
Node.js bindings to TDLib.
Stars: ✭ 177 (-1.67%)
Mutual labels:  webassembly
Opus Media Recorder
MediaRecorder polyfill for Opus recording using WebAssembly
Stars: ✭ 159 (-11.67%)
Mutual labels:  webassembly
Edit Text
Collaborative rich text editor for the web. Written in Rust + WebAssembly.
Stars: ✭ 171 (-5%)
Mutual labels:  webassembly
Lam
🚀 a lightweight, universal actor-model vm for writing scalable and reliable applications that run natively and on WebAssembly
Stars: ✭ 176 (-2.22%)
Mutual labels:  webassembly
Webassembly Examples
From Simple To Complex. A complete collection of webassembly examples.
Stars: ✭ 177 (-1.67%)
Mutual labels:  webassembly
Serde Wasm Bindgen
Native integration of Serde with wasm-bindgen
Stars: ✭ 176 (-2.22%)
Mutual labels:  webassembly

Build Package Version NuGet Downloads License

DEPRECATION NOTE: This package is no longer required since Blazor WebAssembly now supports SignalR Client. Users of this package should stop using it and use the official client instead.

Blazor Extensions

Blazor Extensions is a set of packages with the goal of adding useful features to Blazor.

Blazor Extensions SignalR

This package adds a Microsoft ASP.NET Core SignalR client library for Microsoft ASP.NET Blazor.

The package aims to mimic the C# APIs of SignalR Client as much as possible and it is developed by wrapping the TypeScript client by using Blazor's interop capabilities.

For more information about SignalR development, please check SignalR documentation.

Features

This package implements all public features of SignalR Typescript client.

Note: The Streaming APIs are not implemented yet. We will add it soon.

Sample usage

The following snippet shows how to setup the client to send and receive messages using SignalR.

The HubConnectionBuilder needs to get injected, which must be registered:

// in Startup.cs, ConfigureServices()
   services.AddTransient<HubConnectionBuilder>();
// in Component class
[Inject]
private HubConnectionBuilder _hubConnectionBuilder { get; set; }
// in Component Initialization code
var connection = _hubConnectionBuilder // the injected one from above.
        .WithUrl("/myHub", // The hub URL. If the Hub is hosted on the server where the blazor is hosted, you can just use the relative path.
        opt =>
        {
            opt.LogLevel = SignalRLogLevel.Trace; // Client log level
            opt.Transport = HttpTransportType.WebSockets; // Which transport you want to use for this connection
        })
        .Build(); // Build the HubConnection

connection.On("Receive", this.Handle); // Subscribe to messages sent from the Hub to the "Receive" method by passing a handle (Func<object, Task>) to process messages.
await connection.StartAsync(); // Start the connection.

await connection.InvokeAsync("ServerMethod", param1, param2, paramX); // Invoke a method on the server called "ServerMethod" and pass parameters to it. 

var result = await connection.InvokeAsync<MyResult>("ServerMethod", param1, param2, paramX); // Invoke a method on the server called "ServerMethod", pass parameters to it and get the result back.

Contributions and feedback

Please feel free to use the component, open issues, fix bugs or provide feedback.

Contributors

The following people are the maintainers of the Blazor Extensions projects:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].