Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^12: Mojolicious refresh

by Fletch (Bishop)
on Mar 19, 2020 at 13:58 UTC ( [id://11114478]=note: print w/replies, xml ) Need Help??


in reply to Re^11: Mojolicious refresh
in thread Mojolicious refresh

Probably not the best idea to interject between two people talking past each other, but . . .

Nothing in either of those sentences (as I'm reading it; and as I (basically) understand angularjs) implies (to me) that the client triggers anything. The flow of information (after the websocket connection back is established) for the purposes of display is all server => client.

The client opens a ws connection back to the server and then sits and waits (passively, patiently) for events to come in on it. When a value changes on the server the server sends an event to the client side with the new value ("Hey you: foobniz is now 'vreemflitzle'!"). The client processes that event by updating its local cache of that value, updates anything in its virtual copy of the dom which is dependent on that value, and repaints anything in the real dom which has changed.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^13: Mojolicious refresh
by LanX (Saint) on Mar 19, 2020 at 14:09 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found