void main() throws Exception { while (true) { var text = IO.readln(); if (text == null) return; FileMessageBoard.publish( "consoleIn/outbox", new Message("TEXT", text) ); } }