]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Model/Meteor.pm
1 package Chatty
::Model
::Meteor
;
3 use namespace
::autoclean
;
7 extends
'Catalyst::Model';
9 # TODO: does not reconnect to cometd if connection is broken
15 IO
::Socket
::INET-
>new(
16 PeerAddr
=> 'localhost',
25 Chatty::Model::Meteor - Catalyst Model
29 Handles interaction with the meteor comet server.
35 Post a message to the server.
40 my ($self, $channel, $message) = @_;
42 print $cnx "ADDMESSAGE $channel $message\n";
51 This library is free software. You can redistribute it and/or modify
52 it under the same terms as Perl itself.
56 __PACKAGE__-
>meta->make_immutable;
This page took 0.031166 seconds and 4 git commands to generate.