I am trying to get my head around using mojolicious as a websocket
client. I have used it as a websocket server in various projects. To
start I wanted to create a simple command line utility that connected to
a websocket server and printed the json it received.
I began with the documentation:
https://mojolicious.org/perldoc/Mojo/IOLoop/Stream/WebSocketClient
Due to my lack of understanding the basics a couple things confuse me.
Where do I specify the remote server/port and how do I define $handle?
My code is pretty much the example at that location but with "use
warnings/strict" added. I haven't been able to get an understanding
based on my review of the docs.
It would be great to see an example as I expect others have done this
before. Otherwise some pointers wold be appreciated.
Thanks,
John
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mojolicious/cc400d5f-e7e2-1595-70e5-94ff1974eb27%40tonebridge.com.