in reply to BLOGGING and/or WIKI modules for Dancer2
FWIW, websockets are The Best® way to do live updates and such in a web GUI. Ajax can only pull (client initiated request) but websockets can pull and push (server sends data without being asked and they have *much* smaller overhead for long running connections). With Ajax, you'll always have to be asking the server, should I update, should I update? Works fine of course and I do it all the time. I'd love to switch to websockets in many places but I'm not a websocket dev yet (only toyed with it to date) so I can't give more advice or caveats.
Update: Corion mentioned something below that I’m also going to try and sounds easier. I’ve been playing with Mojo and this kind of stuff – Writing websocket chat using Mojolicious Lite. I was going to write a log file tailer with it as my first production project but R&D is verrrrrryyyyy far down on my work list for awhile now (and I have no free time at home either).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: BLOGGING and/or WIKI modules for Dancer2
by Corion (Patriarch) on Dec 13, 2016 at 15:15 UTC | |
by Your Mother (Archbishop) on Dec 13, 2016 at 16:08 UTC | |
by Corion (Patriarch) on Dec 13, 2016 at 16:12 UTC | |
by Anonymous Monk on Dec 14, 2016 at 00:48 UTC | |
by Corion (Patriarch) on Dec 14, 2016 at 08:21 UTC | |
by Anonymous Monk on Dec 14, 2016 at 09:47 UTC | |
by Corion (Patriarch) on Dec 14, 2016 at 09:49 UTC | |
|