code: def receive_message(self, message, data):
          
          if self._socket_client.is_stopped:
              return True
  
          if data[MESSAGE_TYPE] == TYPE_CLOSE:
              # The cast device is asking us to acknowledge closing this channel.
              self._socket_client.disconnect_channel(message.source_id)
  
              # Schedule a status update so that a channel is created.
              self._socket_client.receiver_controller.update_status()
  
              return True
  
          return False
docs: Called when a connection message is received.