Skip to content

Instantly share code, notes, and snippets.

@robn
Created October 23, 2015 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robn/db2bfa1a1e83c0018b69 to your computer and use it in GitHub Desktop.
Save robn/db2bfa1a1e83c0018b69 to your computer and use it in GitHub Desktop.
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