in reply to Re: real-time output from Mojolicious WebSockets?
in thread real-time output from Mojolicious WebSockets?
Why ampersands you ask? Because I started programming in perl late last century :), and that's how you called procedural functions back then. Today I call OO methods via $obj-<method(), but I still call procedural functions the old fashioned way.
"As iron sharpens iron, so one man sharpens his friend." So I'm open being brought into the 21st century. :) Perhaps I should read "Modern Perl"?
To your point, and the point of the other anonmonk, I am slightly perplexed on how to call my own web service. I did try:
$self->on(json => sub...
but the affects were still the same in that output from the anonymous procedure called, or methods called from inside that anonymous procedure, etc. was being saved until the procedure ended, not being delivered as it was produced. (I stripped down my code to produce this simplified example. I would be happy to repost using "on(json" if you'd like.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: real-time output from Mojolicious WebSockets?
by Anonymous Monk on Dec 20, 2014 at 00:08 UTC | |
Re^3: real-time output from Mojolicious WebSockets?
by Anonymous Monk on Dec 20, 2014 at 01:13 UTC | |
by Anonymous Monk on Dec 20, 2014 at 04:28 UTC | |
by Anonymous Monk on Dec 20, 2014 at 04:31 UTC | |
by icefishyu (Initiate) on Jan 11, 2016 at 09:25 UTC | |
by Corion (Patriarch) on Jan 11, 2016 at 09:37 UTC |