powerman / perl-json-rpc2 Goto Github PK
View Code? Open in Web Editor NEWPerl module: JSON::RPC2 - Transport-independent implementation of JSON-RPC 2.0
Home Page: https://metacpan.org/release/JSON-RPC2
License: Other
Perl module: JSON::RPC2 - Transport-independent implementation of JSON-RPC 2.0
Home Page: https://metacpan.org/release/JSON-RPC2
License: Other
In perl 5.26 the dot is removed from @INC
, causing the tests to fail:
Can't locate t/share.pm in @INC (you may need to install the t::share module) (@INC contains: /home/cpansand/.cpan/build/2017051300/JSON-RPC2-v2.1.1-0/blib/arch /home/cpansand/.cpan/build/2017051300/JSON-RPC2-v2.1.1-0/blib/lib /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0 /opt/perl-5.26.0-RC1/lib/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/5.26.0) at t/client-batch.t line 3.
BEGIN failed--compilation aborted at t/client-batch.t line 3.
t/client-batch.t ...........
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
... (etc.) ...
A possible fix: add something like use lib ".";
to the top of the failing scripts.
Hi all,
Are there any examples of how to use the client with a transport?
Thanks.
And add that version of JSON::XS as dependency at least for tests.
Hi,
some JSON RPC servers have something like an event model. You can subscribe to certain events and when something occurs you're sent an event object. The "id" of the object is always "NULL" and the type is always "event". I'm actually using this together with WebSockets... (AnyEvent::WebSocket::Client).
Looking at the source of the response() sub, I can see that an "id" of value "NULL" is always sorted out. Is there an event handling that I just cannot see, or is it just not implemented?
Don't get me wrong here, I'm fine if it's not implemented, I'm just asking before reinventing the wheel.
KR,
G.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.