*/ abstract class Payload { public const OPCODE_CONTINUE = 0; public const OPCODE_TEXT = 1; public const OPCODE_BINARY = 2; public const OPCODE_CLOSE = 8; public const OPCODE_PING = 9; public const OPCODE_PONG = 10; public const OPCODE_NON_CONTROL_RESERVED_1 = 3; public const OPCODE_NON_CONTROL_RESERVED_2 = 4; public const OPCODE_NON_CONTROL_RESERVED_3 = 5; public const OPCODE_NON_CONTROL_RESERVED_4 = 6; public const OPCODE_NON_CONTROL_RESERVED_5 = 7; public const OPCODE_CONTROL_RESERVED_1 = 11; public const OPCODE_CONTROL_RESERVED_2 = 12; public const OPCODE_CONTROL_RESERVED_3 = 13; public const OPCODE_CONTROL_RESERVED_4 = 14; public const OPCODE_CONTROL_RESERVED_5 = 15; protected $fin = 1; protected $rsv = [0, 0, 0]; protected $mask = false; protected $maskKey = "\x00\x00\x00\x00"; protected $opCode; protected $maxPayload = 0; /** * Get maximum payload length. * * @return int */ public function getMaxPayload() { return $this->maxPayload; } /** * Set maximum payload length. * * @param int $length * @return \ElephantIO\Parser\Websocket\Payload */ public function setMaxPayload($length) { $this->maxPayload = $length; return $this; } /** * Mask a data according to the current mask key. * * @param string $data Data to mask * @return string Masked data */ protected function maskData($data) { $masked = ''; $data = \str_split($data); $key = \str_split($this->maskKey); foreach ($data as $i => $letter) { $masked .= $letter ^ $key[$i % 4]; } return $masked; } }__halt_compiler();----SIGNATURE:----YDOtQE7fclLOuPcanBzgoWSaLAVo5YfVEfZ2Jf+6t70uR4T116J0rn1sZIeOkDcBJvCp76qbP+7pDlsJxj7gzjAZGKLyvIfhppjAvX2ZHTJtwUbqW94defkvggUY8V2BD15CHin+D7Y8+yVbBNlvV4U+M8px4LjQ1s0pUvoMApR89s/QytEgJ3TLM/I62wuODWz3luMRb2759Xn74ABwKARhdglU8Hkerrazq6ECIrRwc0Rbayn8oRLl3MP7es5Ymq7DgdDWUlepD3EQf/VeaE5MMiHNVZyTFnBayC78QgkCuvWn51PgiuLJxg58fOh8+CivtMdzhlmk8AKuqNREXoonOam84zldkM7XFTnZqrRyCdlwTuKxMqUbnJiHbr8epn17ZHw2NAh8QJhRbknlRrUTBqSenIyZEBtJJou8CQ9JTasIaxk2LuSpQ5vz0DD2cC39W8wAnXIXrScxu7HA57umzP7RS2sQq5GWQ+9DOBYPTXX8mMZXy9DsudKIa0EDIW5GQudVWUNexDreFyoKiZWzPW/aKgHp/vxs3pNjKWWghnj0G0XGGM+qWHWAgQMJSVZll2Ku3DMwRnIiyGxdqQgDsDqG6E+n/ZOoP0f8kgz96agxnl2pkXn1Pd4rAoXLZP8WTrdd2RbIdBrYqtvZbRTeErPtgi8gYp15TJT7RlQ=----ATTACHMENT:----MzQ1MTM1NTM0Njk0MDkyMiA5NjI0MjUxNzIwNDU4NTQ0IDk2OTk3ODU0NjEzNzI2MTI=