Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Anonymous Monk
on Dec 19, 2014 at 21:43 UTC ( #1110895=note: print w/replies, xml ) Need Help??


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

So I look at this https://metacpan.org/pod/Mojolicious::Lite#WebSockets it says $c->on(json as in a request of content type json

https://metacpan.org/pod/Mojolicious::Controller#on confirms # Receive JSON object via WebSocket message as does https://metacpan.org/pod/Mojo::Transaction::WebSocket#json

So subscribing to a 'You should never see this.' event is weird ... probably won't work ... I think Mojo should reject this event, but it probably doesn't die because of something or other (register events something?)

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-06-13 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (57 votes). Check out past polls.

    Notices?