Created
October 23, 2015 01:50
-
-
Save robn/db2bfa1a1e83c0018b69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ME::Bort::Plugin::Remote; | |
use 5.014; | |
use warnings; | |
use strict; | |
use Twiggy::Server; | |
use Atto qw(hello); | |
my $Server; | |
sub Init { | |
$Server = Twiggy::Server->new(host => "127.0.0.1", port => 25555); | |
$Server->register_service(Atto->psgi); | |
} | |
sub hello { | |
Bort->Send(Bort->ChannelByName("bortdev"), "hello world"); | |
return 0; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment