Comments (3)
SignalR documentation says that connection.invoke
does return a promise. I tried to change the ChatClient.Send
function to return this promise and handle it in ChatClient.cs
but it didn't work.
from blazorchatsample.
Amended the code to update for 0.5.0 and this only supports async methods.
An important point to note is that even if a JS method does not return a value, it should be called with invokeAsync<object>
otherwise the call never completes. I did try invokeAsync<bool>
originally and this didn't work.
from blazorchatsample.
Upgraded to 0.5.0 which requires use of async calls
from blazorchatsample.
Related Issues (12)
- UI layout and CSS needs improvement
- Upgrade to Preview 6 HOT 2
- Add 'joined' and 'left' messages HOT 3
- Purpose of connections lookup object in chatClient.js HOT 1
- How to run? HOT 1
- SignalR client does not close connection HOT 1
- Can't connect to blazor server from console app HOT 1
- private chat HOT 2
- Update to new Blazor JsInterop HOT 4
- Azure website does not support websockets since upgrade to 2.1?
- Blazor 0.5.0 bug - HTML escapes are decoded and corrupt HTML render HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazorchatsample.