skybet / amqpea Goto Github PK
View Code? Open in Web Editor NEWNode.js AMQP client
Node.js AMQP client
Do you have an example of connecting over amqps://
scheme URI instead of plain amqp://
?
docker run --name data-activemq -p 1883:1883 -p 5672:5672 -p 8161:8161 -p 61613:61613 -p 61614:61614 -p 61616:61616 -e 'ACTIVEMQ_MIN_MEMORY=512' -e 'ACTIVEMQ_MAX_MEMORY=2048' -v $DATA_PATH/activemq:/data/activemq -h data-activemq -d webcenter/activemq:5.12.0
var targetUri = 'amqp://guest:[email protected]:61616/%2F';
$ node ActiveMQ-AmqPea-Pub-Sub.js
--connect--
... targetUri = amqp://guest:[email protected]:61616/%2F
--die--
C:\git\queue-demo\ActiveMQ-AmqPea-Pub-Sub.js:58
throw err;
^
RangeError: Attempt to allocate Buffer larger than maximum size: 0x3fffffff bytes
at new Buffer (buffer.js:71:11)
at FrameParser.parseFrameStart (C:\git\queue-demo\node_modules\amqpea\node_modules\bramqp\lib\frameParser.js:367:29)
at FrameParser.parse (C:\git\queue-demo\node_modules\amqpea\node_modules\bramqp\lib\frameParser.js:433:57)
at Socket.<anonymous> (C:\git\queue-demo\node_modules\amqpea\node_modules\bramqp\lib\connectionHandle.js:54:22)
at Socket.g (events.js:199:16)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
Not sure why, don't have time to find out right now: https://travis-ci.org/skybet/amqpea
The code hasn't changed, so must be environmental.
e.g.
AMQP listener attached for "connection.start"
AMQP listener attached for "connection.start"
AMQP 0 in connection.start {"version-major":0,"version-minor":9,"server-properties":{"capabilities":{"publisher_confirms":true,"exchange_exchange_bindings":true,"basic.nack":true,"consumer_cancel_notify":true,"connection.blocked":true,"consumer_priorities":true,"authentication_failure_close":true},"copyright":"Copyright (C) 2007-2013 GoPivotal, Inc.","information":"Licensed under the MPL. See http://www.rabbitmq.com/","platform":"Erlang/OTP","product":"RabbitMQ","version":"3.2.3"},"mechanisms":"PLAIN AMQPLAIN","locales":"en_US"}
AMQP to 0 connection.start-ok {"client-properties":{"product":{"type":"Long string","data":"obdata-feed"},"version":{"type":"Long string","data":"gueatrdapp01 pid 25658"},"platform":{"type":"Long string","data":"Linux/Node.js/AMQPea/0.3.0"}},"mechanism":"AMQPLAIN","response":{"LOGIN":{"type":"Long string","data":"orwell"},"PASSWORD":{"type":"Long string","data":"******"}},"locale":"en_US"}
AMQP listener attached for "connection.tune"
AMQP listener attached for "connection.start"
AMQP 0 in connection.start {"version-major":0,"version-minor":9,"server-properties":{"capabilities":{"publisher_confirms":true,"exchange_exchange_bindings":true,"basic.nack":true,"consumer_cancel_notify":true,"connection.blocked":true,"consumer_priorities":true,"authentication_failure_close":true},"copyright":"Copyright (C) 2007-2013 GoPivotal, Inc.","information":"Licensed under the MPL. See http://www.rabbitmq.com/","platform":"Erlang/OTP","product":"RabbitMQ","version":"3.2.3"},"mechanisms":"PLAIN AMQPLAIN","locales":"en_US"}
AMQP 0 in connection.tune {"channel-max":0,"frame-max":131072,"heartbeat":580}
No indication of which log message belongs to which connection
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.