interface · pocketmine\network\mcpe\PacketSender · source
public function close(string $reason = "unknown reason") : voidCloses the channel, terminating the connection.
public function send(string $payload, bool $immediate, ?int $receiptId) : voidPushes a packet into the channel to be processed.