![]() |
![]()
| ![]() |
![]()
NAMEProtocol::XMPP::Base - base class for Protocol::XMPP VERSIONVersion 0.006 SYNOPSISDESCRIPTIONMETHODSnewConstructor. Stores all parameters on $self, including the top level stack item as parent. debugHelper method for displaying a debug message. Only displayed if the debug flag was passed to configure. _ref_to_xmlConvert an arrayref to an XML fragment. Input such as the following: [ 'iq', type => 'set', id => 'xyz', _content => [ [ 'session', _ns => 'xmpp-session' ] ] ] would be converted to: <iq type=>'set' id=>'xyz'><session xmlns='...:xmpp-session'/></iq> PROXY METHODSThe following methods are proxied to the Protocol::XMPP::Stream class via stream. is_loggedinAccessor for the loggedin state - will call the appropriate on_(login|logout) event when changing state. write_xmlWrite XML reference to stream. write_textWrite XML reference to stream. dispatch_eventPass through an event (on_XXX handler). streamReturns the active Protocol::XMPP::Stream object. next_idReturns the next ID for to use in outgoing messages. AUTHORTom Molesworth <cpan@entitymodel.com> LICENSECopyright Tom Molesworth 2010-2014. Licensed under the same terms as Perl itself.
|