Chrome:...rt::Mojo(3)

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

✨ NAME ✨

Chrome::DevToolsProtocol::Transport::Mojo β€” the Mojolicious backend for talking to Chrome πŸ’–

(also hi bestie, this is part of the User Contributed Perl Documentation situation, and the page is literally called Chrome:...rt::Mojo(3), so now you know what you're looking at πŸŽ€)


🌸 SYNOPSIS 🌸

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

okay so literally: you make a Future that's already done with some ws://... endpoint, you spin up a new transport with Chrome::DevToolsProtocol::Transport::Mojo->new, and then you connect with your $handler, $got_endpoint and $logger. Then you chain a ->then(sub { ... }) and when it fires you get handed the $connection and you print "We are connected\n" like the main character you are. slay πŸ’…

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

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

Returns a Future that will be resolved in the number of seconds given. so like, it's not blocking, it's giving patience but make it asynchronous ✨


πŸ¦‹ REQUIRED ADDITIONAL MODULES πŸ¦‹

not me having to break it to you: this module needs extra modules that are not installed by the default installation of WWW::Mechanize::Chrome πŸ™ˆ

  • Mojo::UserAgent
  • Future::Mojo

go install them bestie, it's giving necessary πŸ“¦


πŸŽ€ REPOSITORY πŸŽ€

The public repository of this module is <https://github.com/Corion/www-mechanize-chrome>. that's the spot, iykyk πŸ”₯


πŸ’– SUPPORT πŸ’–

The public support forum of this module is <https://perlmonks.org/>. the monks are lowkey iconic 🧘


πŸ› BUG TRACKER πŸ›

Please report bugs in this module via the Github bug queue at <https://github.com/Corion/WWW-Mechanize-Chrome/issues> πŸ’€ found a bug? tell the queue, not me, fr fr


πŸ‘‘ AUTHOR πŸ‘‘

Max Maischein "corion@cpan.org" πŸ’«


Copyright 2010-2026 by Max Maischein "corion@cpan.org".


⭐ LICENSE ⭐

This module is released under the same terms as Perl itself. periodt πŸ’…


and that's the whole page bestie 🫢 go forth and transport your Chrome DevTools Protocol messages in Mojolicious-flavoured style ✨

kisses, this was perl v5.42.2, dated 2026-06-07, straight outta Chrome:...rt::Mojo(3) πŸ’œ

πŸ“¦ where this page comes from