Skip to content

PacketSender ​

interface · pocketmine\network\mcpe\PacketSender · source

Methods ​

close() ​

php
public function close(string $reason = "unknown reason") : void

Closes the channel, terminating the connection.

send() ​

php
public function send(string $payload, bool $immediate, ?int $receiptId) : void

Pushes a packet into the channel to be processed.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.