code: def registered(self, socket_client):
          
          self._socket_client = socket_client
  
          if self.target_platform:
              self._message_func = self._socket_client.send_platform_message
          else:
              self._message_func = self._socket_client.send_app_message
docs: Called when a controller is registered.