Chrome:...AnyEvent(3)
β¨ 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:
AnyEventAnyEvent::WebSocket::ClientAnyEvent::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 (c) Β©οΈ
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 fromperl v5.42.2, dated2026-06-07, under theChrome:...AnyEvent(3)name in the User Contributed Perl Documentation. Stay connected. π¦π
π¦ where this page comes from
- fedora 43: perl-WWW-Mechanize-Chrome 0.78-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-WWW-Mechanize-Chrome 0.78-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms