code: def send_message(self, message):
          
          if not self.live():
              raise IOError("Connection is not live.")
  
          message.add_flag(BEGIN_END_FLAG)
          self.write(message.buffer)
docs: Sends a message to this connection.
  
          :param message: (Message), message to be sent to this connection.