Comments (6)
from websocket-rpc.
Nice job BTW.
I saw that, but isn't that more of an Action call than Function call? What about getting a return value? Something like this (pseudo code):
// client
<input type="text" id="textbox" />
function getTextValue(elementName : string) : string {
return getElementById(elementName).value;
}
// server
var clientText = client.Invoke("getTextValue", "textbox");
from websocket-rpc.
from websocket-rpc.
Cool. I'll take a look. It would be good to see an example. If you get a chance, can you show a simple example of doing a "read the browser and assign to a variable? (Like my example.)
With SignalR, sending the request for info and getting a response are two separate things. They don't support any type of synchronization. Not being able to do solicit->response->assign in one line is a powerful, missing feature for real RPC.
I've stared both and hope to feature this in an article I am writing on Solicit-Response approaches to web apps.
from websocket-rpc.
A sample is added.
Take a look at the: https://github.com/dajuric/websocket-rpc/tree/master/Samples/ClientInfoJs
from websocket-rpc.
Really nice, Darko! Looks like it does just what I need. I'm going to try integrating it into a Razor Pages thing I'm doing in Core. I'll let you know how that goes.
from websocket-rpc.
Related Issues (9)
- Sending and receiving complex objects HOT 7
- Standalone .Net Standard 2.0 NuGet Package
- WSS Support HOT 1
- Is it available for .Net 4.6? HOT 1
- Support for `CommonJS` module generation in `WebSocketRPC.JS`
- `GenerateCallerWithDoc` searches documentation file in wrong place
- Project `WebSocketRPC.AspCore` should be directly dependent from `Microsoft.AspNetCore.WebSockets`
- Abnormal client termination not reported on server end (Using ASPNET middleware)
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 websocket-rpc.