Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 487 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 487 Bytes

Protocol

PHP

Register packet handler

 use \HQGames\network\PacketHandlerManager as PHM;
/**
 * @var \HQGames\network\IProtocolPacketHandler $handler
 */
PHM::getInstance()->registerPacketHandler($handler);

Unregister packet handler

 use \HQGames\network\PacketHandlerManager as PHM;
/**
 * @var \HQGames\network\IProtocolPacketHandler $handler
 */
PHM::getInstance()->unregisterPacketHandler($handler);

Javascript

Nothing implemented yet!