Fleshing out the interface to message and socket.