[WebSocket] Removed deprecated code
Removed some unused Frame code in favour of newer APIs Removed RFC's Message::frame and Frame::create methods
This commit is contained in:
parent
e42a8c3d7a
commit
52fbb59808
@ -240,15 +240,6 @@ class RFC6455 implements VersionInterface {
|
|||||||
return new Frame($payload, $final, $opcode);
|
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
|
* Used when doing the handshake to encode the key, verifying client/server are speaking the same language
|
||||||
* @param string
|
* @param string
|
||||||
|
@ -62,19 +62,6 @@ class Frame implements FrameInterface {
|
|||||||
$this->addBuffer(static::encode($raw) . $payload);
|
$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
|
* Encode the fake binary string to send over the wire
|
||||||
* @param string of 1's and 0's
|
* @param string of 1's and 0's
|
||||||
|
Loading…
Reference in New Issue
Block a user