in reply to WWW::Pusher - does not send a message
data can also be hash/arrayref. There should be no need to JSON encode your data.
it seems the module JSONizes the data structure for you. So, just specify a Perl structure:
my $response = $pusher->trigger( event => 'my_event', data => { message => 'Test message' +}, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Pusher - does not send a message
by rkrasowski (Sexton) on Jun 14, 2015 at 19:13 UTC | |
by choroba (Cardinal) on Jun 14, 2015 at 19:48 UTC | |
by rkrasowski (Sexton) on Jun 15, 2015 at 23:20 UTC |