Skip to content
Lua Client for RabbitMQ / AMQP 0.9.1
Lua
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead, 1 commit behind mengz0:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
amqp
spec
.gitignore
LICENSE
README.md
amqp-1.1-1.rockspec
amqp.lua

README.md

AMQP

Lua Client for AMQP 0.9.1

Typical Use Cases

  • Consumer
local amqp = require "amqp"
local ctx = amqp.new({role = "consumer", queue = "mengz0", exchange = "amq.topic", ssl = false, user = "guest", password = "guest"})
ctx:connect("127.0.0.1",5672)
local ok, err = ctx:consume()
  • Producer
local amqp = require "amqp"
local ctx = amqp.new({role = "publisher", exchange = "amq.topic", ssl = false, user = "guest", password = "guest"})
ctx:connect("127.0.0.1",5672)
ctx:setup()
local ok, err = ctx:publish("Hello world!")
You can’t perform that action at this time.