The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Async::Pusher::Connection - represents one Net::Async::Pusher server connection

DESCRIPTION

Provides basic integration with the https://pusher.com|Pusher API. This implements the protocol as documented in https://pusher.com/docs/pusher_protocol.

METHODS

send_ping

Sends a ping request on this connection.

incoming_frame

Deals with incoming frames.

client

Returns the Net::Async::WebSocket::Client instance.

open_channel

Opens a channel.

 my $ch = $conn->open_channel(
  'xyz'
 )->get;

Resolves to a Net::Async::Pusher::Channel instance.

connect

(Re)connects to the feed.

connected

Future representing current connection state.

key

The key.

INHERITED METHODS

IO::Async::Notifier

add_child, adopt_future, adopted_futures, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

Copyright Tom Molesworth 2015-2021. Licensed under the same terms as Perl itself.