Hoppy::Room::Memory - Room on memory. It manages users and their sessions.
use Hoppy; my $server = Hoppy->new; my $room = $server->room; # get room object from the Hoppy. # longin and logout are handled automatically. $room->login(...); $room->logout(...); # create or delete a new room. $room->create_room('hoge'); $room->delete_room('hoge'); # you can fetch user(s) object from any ID. my $user = $room->fetch_user_from_user_id($user_id); my $user = $room->fetch_user_from_session_id($session_id); my $users = $room->fetch_users_from_room_id($room_id);
Room on memory. It manages users and their sessions.
%args = ( user_id => $user_id, session_id => $session_id, password => $password, #optional room_id => $room_id, #optional );
%args = ( user_id => $user_id );
Takeshi Miki <firstname.lastname@example.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.