Add the receiver

@param $to
343614
protected function addTo($to)
    {
        if ( ! empty( $to )) {
            $this->client = $this->client->to($to);
        }
    }
827668
public function push($payload): void
    {
        // attach sender if not broadcast
        if (! $this->broadcast && $this->sender && ! $this->hasDescriptor($this->sender)) {
            $this->addDescriptor($this->sender);
        }

        // check if to broadcast to other clients
        if ($this->shouldBroadcast()) {
            $this->addDescriptors($this->getWebsocketConnections());
        }

        // push message to designated fds
        foreach ($this->descriptors as $descriptor) {
            if ($this->shouldPushToDescriptor($descriptor)) {
                $this->server->push($descriptor, $payload, $this->opcode);
            }
        }
    }
1359539
public static function redirect(string $to) {
		ref\sanitize::url($to);

		unset($_POST);
		unset($_GET);
		unset($_REQUEST);

		if (! \headers_sent()) {
			\header("Location: $to");
		}
		else {
			echo "<script>top.location.href='" . \str_replace("'", "\'", $to) . "';</script>";
		}
		exit;
	}
572551
public function send($to)
    {
        // will throw exception
        $this->testValidateMessageParts();

        $message = $this->createMessage($to);

        return $this->mailManager->send($message);
    }
1094107
public function to($to, $name = null)
    {
        $this->to[] = $this->formatEmail($to, $name);

        return $this;
    }
849545
public function moveFile( $from, $to )
	{
		$this->connection->checkConnection();
		return @ftp_rename( $this->connection->getResource(), $from, $to );
	}
208681
protected function addClassName($to = 'class', $value = null)
    {
        $classes = explode(' ', (string) $this->getAttribute($to));

        $value = array_merge($classes, is_string($value) ? explode(' ', $value) : $value);

        return $this->set($to, implode(' ', array_unique($value)));
    }
1153790
public function rcpt($to)
    {
        if ($this->_mail == false) {
            throw new SMTPException(__('Must call MAIL before calling RCPT'));
        }

        $this->_send('RCPT TO:<' . $to . '>');
        $this->_expect(array(250, 251), 300);

        $this->_rcpt = true;
    }
264807
public function rename($to) {
		
		if($this->alreadyUploaded) {
			return parent::rename($to);
		}

		$this->originalName = $to;

		return $this;

	}
179228
public function addTransition($from, $to)
    {
        if (!isset($this->transitions[$from])) {
            $this->transitions[$from] = array();
        }
        $this->transitions[$from][] = $to;
    }
837372
def add_receiver(self, receiver):
        
        if not callable(receiver):
            raise TypeError("receiver must be callable")
        self.event_receivers.append(receiver)
583751
private static void addToReceivers(final BroadcastReceiver receiver, final String action) {
		Set<String> actions = RECEIVERS.get(receiver);
		if (actions == null) {
			actions = new HashSet<String>(1);
			RECEIVERS.put(receiver, actions);
		}
		actions.add(action);
	}
1181746
public function notify($to, $message)
    {
        $params = ['text' => $message];

        return $this->send($this->buildUrlFromString("rooms/{$to}/chatMessages"), $params);
    }
426312
protected function process($params, $to)
    {
        $params['DestinationAddress'] = $to;
        $result                       = $this->request('Send', $params);
        if (!isset($this->config['codes'][$result])) {
            return $result;
        }
        $this->setResultCode($result);
        $this->setResultMessage($this->config['codes'][$result]);
        throw new Exception(sprintf('Unable to send sms to %s with content: %s. Provider error message: %s.', $to, $params['Body'], $this->config['codes'][$result]));
    }
682139
protected function publishDirectory($from, $to)
    {
        $this->copyDirectory($from, $to);

        $this->status($from, $to, 'Directory');
    }
155200
public function addRange($from = null, $to = null)
    {
        $range = array_filter(
            [
                'from' => $from,
                'to' => $to,
            ],
            function ($v) {
                return !is_null($v);
            }
        );

        $this->ranges[] = $range;

        return $this;
    }
1085848
protected function replicateForFluidApi($to)
    {
        $copy = new static($this->transport, $this->configProvider, $this->composer);

        $copy->beforeSending($this->sendingListener);
        $copy->afterSent($this->sentListener);

        return $copy->_setTo($to)->alwaysSendTo($this->overwrittenTo);
    }