AnyEvent-Mattermost
view release on metacpan or search on metacpan
lib/AnyEvent/Mattermost.pm view on Meta::CPAN
and their signatures (even their very existence) are not guaranteed to remain
stable between versions. However, if you're the adventurous type ...
=cut
=head2 ping
$mconn->ping();
Pings the Mattermost server over the WebSocket connection to maintain online
status and ensure the connection remains alive. You should not have to call
this method yourself, as start() sets up a ping callback on a timer for you.
=cut
sub ping {
my ($self) = @_;
$self->{'conn'}->send("ping");
}
( run in 1.022 second using v1.01-cache-2.11-cpan-df04353d9ac )