Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^7: real-time output from Mojolicious WebSockets?

by Corion (Pope)
on Jan 11, 2016 at 09:37 UTC ( #1152460=note: print w/replies, xml ) Need Help??

in reply to Re^6: real-time output from Mojolicious WebSockets?
in thread real-time output from Mojolicious WebSockets?

Have you made sure that there is no buffering going on between your script and the client? Maybe the websocket channel has gzip compression enabled which buffers?

Have you written your progress output to a logfile in parallel to verify that your script arrives at the respective steps when you think it should?

Your problem seems to be relatively common, but the only one with enough source code to maybe reproduce it (and a solution) was at Mojolicious websocket with server-side repeating events. So maybe you can either try that solution or work your code into something that we can run to try and reproduce your problem.

Relevant keywords seem to be perl mojo websocket flush, but without seeing more of your code, it's hard to judge whether the solutions (or not) suggested fit your situation.

  • Comment on Re^7: real-time output from Mojolicious WebSockets?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-07-30 02:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found