<?php
namespace Phpws\Core;

class WebSocketUser implements \Phpws\Interfaces\WebsocketUser {

  public $socket;
  public $id;
  public $watcher;
  public $headers = NULL;
  public $handshaked = false;

  public $handlingPartialPacket = false;
  public $readBuffer = "";
  public $writeNeeded = false;
  public $writeBuffer = "";

  public $partialMessage = "";
  
  public $hasSentClose = false;

  function __construct($id, $socket) {
    $this->id = $id;
    $this->socket = $socket;
  }
}

<?php
namespace Phpws\Core;

class WebSocketUser implements \Phpws\Interfaces\WebsocketUser {

  public $socket;
  public $id;
  public $watcher;
  public $headers = NULL;
  public $handshaked = false;

  public $handlingPartialPacket = false;
  public $readBuffer = "";
  public $writeNeeded = false;
  public $writeBuffer = "";

  public $partialMessage = "";
  
  public $hasSentClose = false;

  function __construct($id, $socket) {
    $this->id = $id;
    $this->socket = $socket;
  }

  public function getTlsStatus()
  {
    return false;
  }
  
  public function getNetHandle()
  {
    return $id;
  }
}

Implement the promises of the user interface...
Implement the promises of the user interface...
