server connection method for sending client messages