From 52fbb598083a8661342e74d5a838a2af66b18a4d Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Fri, 13 Jul 2012 19:57:22 -0400 Subject: [PATCH] [WebSocket] Removed deprecated code Removed some unused Frame code in favour of newer APIs Removed RFC's Message::frame and Frame::create methods --- Version/RFC6455.php | 9 --------- Version/RFC6455/Frame.php | 13 ------------- 2 files changed, 22 deletions(-) diff --git a/Version/RFC6455.php b/Version/RFC6455.php index 4e89bb7..cf0e5f5 100644 --- a/Version/RFC6455.php +++ b/Version/RFC6455.php @@ -240,15 +240,6 @@ class RFC6455 implements VersionInterface { return new Frame($payload, $final, $opcode); } - /** - * @todo This is needed when a client is created - needs re-write as missing parts of protocol - * @param string - * @return string - */ - public function frame($message, $mask = true) { - return $this->newFrame($message)->getContents(); - } - /** * Used when doing the handshake to encode the key, verifying client/server are speaking the same language * @param string diff --git a/Version/RFC6455/Frame.php b/Version/RFC6455/Frame.php index 2b85039..a0fc11c 100644 --- a/Version/RFC6455/Frame.php +++ b/Version/RFC6455/Frame.php @@ -62,19 +62,6 @@ class Frame implements FrameInterface { $this->addBuffer(static::encode($raw) . $payload); } - /** - * @param string A valid UTF-8 string to send over the wire - * @param bool Is the final frame in a message - * @param int The opcode of the frame, see constants - * @param bool Mask the payload - * @return Frame - * @throws InvalidArgumentException If the payload is not a valid UTF-8 string - * @throws LengthException If the payload is too big - */ - public static function create($payload, $final = true, $opcode = 1) { - return new static($payload, $final, $opcode); - } - /** * Encode the fake binary string to send over the wire * @param string of 1's and 0's