Network clients can also be implemented using Akka System IO.
The following provides a simple client that contents to the LengthCountedServer, simplistically modified to echo back the received text to all attached clients
Note that all the operations are asynchronous, including the connection creation on line 24. The API returns a SocketHandle, even if the connection cannot be made. The clarity of system state we wait for the Connected operation before registering a handle.