Skip to content

Commit

Permalink
stash the username and password when we connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom May committed Jul 8, 2009
1 parent 7160f2b commit c56a47b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Net/Stomp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use IO::Select;
use Net::Stomp::Frame;
use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors(
qw(hostname port select serial session_id socket ssl ssl_options subscriptions));
qw(hostname login passcode port select serial session_id socket ssl ssl_options subscriptions));
our $VERSION = '0.34';

sub new {
Expand Down Expand Up @@ -50,6 +50,8 @@ sub connect {
# Setting initial values for session id, as given from
# the stomp server
$self->session_id( $frame->headers->{session} );
$self->login( $conf->{login} );
$self->passcode( $conf->{passcode} );

return $frame;
}
Expand Down

0 comments on commit c56a47b

Please sign in to comment.