Having developed a bit more response from Viktors, a minimal example would be
import akka.actor._ import ActorDSL._ import java.net.InetSocketAddress object Server extends App { implicit val sys = ActorSystem("telnet") actor(new Act with ActorLogging { IOManager(context.system) listen new InetSocketAddress(1234) become { case IO.NewClient(server) โ server.accept() case IO.Read(handle, bytes) โ log.info("got {} from {}", bytes.decodeString("utf-8"), handle) } }) }
Then in another launch of the telnet localhost 1234 shell and start typing, you will see one member log message in a line.
source share