Use the connections iter() function.
Add function to send messages to the server.