for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class WebSocketUser
{
public $socket;
public $id;
public $headers = [];
public $handshake = false;
public $handlingPartialPacket = false;
public $partialBuffer = '';
public $sendingContinuous = false;
public $partialMessage = '';
public $hasSentClose = false;
public function __construct($id, $socket)
$this->id = $id;
$this->socket = $socket;
}
class MyUser extends WebSocketUser
public $myId;
public function __construct($id, $socket, $myId)
parent::__construct($id, $socket);
$this->myId = $myId;