the script needs to return a function, which will be run, when plugin is called.
- something like:
local host, port = "10.94.XX.XX", 1702
local socket = require("socket")
local tcp = assert(socket.tcp())
local sendMessage = function()
tcp:connect(host, port);
tcp:send("hello world");
end
return sendMessage