Started changes to allow the server to send messages to the client.