public function __construct(PsrLogger $logger, Websocket $application) { $this->logger = $logger; $this->application = $application; $this->now = time(); $this->proxy = new Rfc6455EndpointProxy($this); }