From 074f64652c2228a13d8b2d047687e98e1d96b2bc Mon Sep 17 00:00:00 2001 From: ilija Date: Fri, 12 Feb 2016 15:16:34 +0800 Subject: [PATCH 1/2] Set the URL of the listening server --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index a4160fc..f667d48 100644 --- a/init.lua +++ b/init.lua @@ -45,6 +45,12 @@ local function normalize(img, opts) return img end +-- Set the URL of the listening server +function M.server(config) + local port = config.port or 8000 + local hostname = config.hostname or '127.0.0.1' + M.url = 'http://' .. hostname .. ':' .. port ..'/events' +end function M.image(img, opts) -- options: From 2dbd26812f8b4a11bd91afc2bee2b4b043e99089 Mon Sep 17 00:00:00 2001 From: Ilija Ilievski Date: Sat, 20 Feb 2016 14:29:16 +0800 Subject: [PATCH 2/2] Name change --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f667d48..83f37a4 100644 --- a/init.lua +++ b/init.lua @@ -46,7 +46,7 @@ local function normalize(img, opts) end -- Set the URL of the listening server -function M.server(config) +function M.configure(config) local port = config.port or 8000 local hostname = config.hostname or '127.0.0.1' M.url = 'http://' .. hostname .. ':' .. port ..'/events'