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