local component = require("component") local event = require("event") local t = component.tunnel print("exit - выйти") while true do io.write("msg: ") _, message = pcall(io.read) if message == "exit" then break end t.send(message) end