Chrome:...AnyEvent(3)

πŸ“¦
version 0.78 Β· 3 versions
, in fedora 43, fedora 44

✨ NAME ✨

Chrome::DevToolsProtocol::Transport::AnyEvent β€” bestie, it's the AnyEvent backend for Chrome communication πŸ’–

Like, this is the little glue module that lets you talk to Chrome on an AnyEvent event loop, and the manual page it lives on is part of the User Contributed Perl Documentation set, filed under the section-3 name Chrome:...AnyEvent(3). 🌸


🌈 SYNOPSIS 🌈

Okay so here's the vibe, literally just:

my $got_endpoint = Future->done( "ws://..." );
Chrome::DevToolsProtocol::Transport::AnyEvent->connect( $handler, $got_endpoint, $logger)
->then(sub {
    my( $connection ) = @_;
    print "We are connected\n";
});

And that's the whole flex. You pass in $handler, $got_endpoint and $logger, and the ->then fires once you're connected, handing you the $connection. Iconic. πŸ‘‘

πŸ’€ "$transport->sleep( $seconds )" πŸ’€

Not me giving you a nap button:

$transport->sleep( 10 )->get; # wait for 10 seconds

It returns a Future that will be resolved in the number of seconds given. So 10 seconds means it resolves after 10 seconds. Periodt. ⏳


🧚 REQUIRED ADDITIONAL MODULES 🧚

Heads up bestie, this module needs some extra modules that are not installed by the default installation of WWW::Mechanize::Chrome. You gotta go get them yourself:

  • AnyEvent
  • AnyEvent::WebSocket::Client
  • AnyEvent::Future

Three little dependencies, no cap. 🫢


πŸ“¦ REPOSITORY πŸ“¦

The public repository of this module is <https://github.com/Corion/www-mechanize-chrome>. Go lurk, go star it. ⭐


πŸ«‚ SUPPORT πŸ«‚

The public support forum of this module is <https://perlmonks.org/>. Ask your questions there, the monks are nice. πŸ’œ


πŸ› BUG TRACKER πŸ›

Please report bugs in this module via the Github bug queue at <https://github.com/Corion/WWW-Mechanize-Chrome/issues>. Don't suffer in silence, put it in the queue. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Max Maischein "corion@cpan.org" β€” the main character who wrote all of this. πŸ’…


Copyright 2010-2026 by Max Maischein "corion@cpan.org". Yeah, that's a long run. We love longevity. 🌸


πŸ“œ LICENSE πŸ“œ

This module is released under the same terms as Perl itself. Slay, that's the whole license. ✨


And that's the tea, bestie β€” this page came from perl v5.42.2, dated 2026-06-07, under the Chrome:...AnyEvent(3) name in the User Contributed Perl Documentation. Stay connected. πŸ¦‹πŸ’–
πŸ“¦ where this page comes from