in reply to real-time output from Mojolicious WebSockets?
Wouldn't that be evaluated as$self->on(&myapp($tx) => sub { ...
after &myapp($tx) returns and before registering the handler?$self->on('You should never see this.' => sub { ...
Also, please tell why you're using ampersands before function names.
Maybe because Mojolicious takes 'You should never see this.' seriously? :)$ws->send("Time is: " . scalar(localtime())); ## odd, we never see this output
Or maybe I'm wrong and Mojo is just too magical for people like me...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: real-time output from Mojolicious WebSockets?
by Anonymous Monk on Dec 19, 2014 at 21:43 UTC | |
Re^2: real-time output from Mojolicious WebSockets?
by BroFish (Initiate) on Dec 19, 2014 at 22:41 UTC | |
by Anonymous Monk on Dec 20, 2014 at 00:08 UTC | |
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 | |
|