= '0.000002';
$VERSION = eval $VERSION;
use AnyEvent::WebSocket::Client;
use LWP::UserAgent;
use JSON;
use URI;
use HTTP::Request;
use HTTP::Headers;
use AnyEvent::HTTP;
my $debug = 0;
sub new {
;
$gateway->path("/") unless length $gateway->path;
$gateway->query_form(v=>6, encoding=>"json");
$self->{gateway} = "$gateway";
}
print "Connecting to $self->{gateway}...\n";
$sel
ress => JSON::false,
large_threshold => 250,
shard => [0, 1],
});
$self->{conn}->on(each_message => sub {
my($connection, $message) = @_;
my $msg = decode_json($messag