input() input(string $buffer, \Workerman\Connection\ConnectionInterface $connection) : int Check the integrity of the package. Parameters string $buffer \Workerman\Connection\ConnectionInterface $connection Returns int —
encode() encode(string $buffer, \Workerman\Connection\ConnectionInterface $connection) : string Websocket encode. Parameters string $buffer \Workerman\Connection\ConnectionInterface $connection Returns string —
decode() decode(string $buffer, \Workerman\Connection\ConnectionInterface $connection) : string Websocket decode. Parameters string $buffer \Workerman\Connection\ConnectionInterface $connection Returns string —
dealHandshake() dealHandshake(string $buffer, \Workerman\Connection\TcpConnection $connection) : int Websocket handshake. Parameters string $buffer \Workerman\Connection\TcpConnection $connection Returns int —
parseHttpHeader() parseHttpHeader(string $buffer) : void Parse http header. Parameters string $buffer