NAME
AnyEvent::MtGox::Stream - AnyEvent client for the MtGox streaming API
SYNOPSIS
use AnyEvent::MtGox::Stream;
my $client = AnyEvent::MtGox::Stream->new(
on_message => sub { },
on_error => sub { },
on_disconnect => sub { },
);
DESCRIPTION
The AnyEvent::MtGox::Stream
module is an AnyEvent
client for the MtGox streaming API.
METHODS
new
$client = AnyEvent::MtGox::Stream->new(%args)
Creates a new client. The following named arguments are accepted:
- secure
-
Use HTTPS for securing network traffic. (default: 0)
- on_message
-
Callback to execute for each message.
- on_error
-
Callback to execute on error.
- on_disconnect
-
Callback to execute on disconnect.
SEE ALSO
https://en.bitcoin.it/wiki/MtGox/API#Streaming_API
https://github.com/LearnBoost/socket.io-spec
REQUESTS AND BUGS
Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=AnyEvent-MtGox-Stream. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc AnyEvent::MtGox::Stream
You can also look for information at:
GitHub Source Repository
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=AnyEvent-MtGox-Stream
Search CPAN
COPYRIGHT AND LICENSE
Copyright (C) 2011 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
gray, <gray at cpan.org>