Coder Social home page Coder Social logo

Comments (6)

dajuric avatar dajuric commented on June 15, 2024

from websocket-rpc.

RandyBuchholz avatar RandyBuchholz commented on June 15, 2024

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.

dajuric avatar dajuric commented on June 15, 2024

from websocket-rpc.

RandyBuchholz avatar RandyBuchholz commented on June 15, 2024

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.

dajuric avatar dajuric commented on June 15, 2024

A sample is added.
Take a look at the: https://github.com/dajuric/websocket-rpc/tree/master/Samples/ClientInfoJs

from websocket-rpc.

RandyBuchholz avatar RandyBuchholz commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.