_app = $app; } public function onOpen(ConnectionInterface $conn) { $this->_conn_open = $conn; } public function onMessage(ConnectionInterface $from, $msg) { $this->_conn_recv = $from; $this->_msg_recv = $msg; } public function onClose(ConnectionInterface $conn) { $this->_conn_close = $conn; } public function onError(ConnectionInterface $conn, \Exception $e) { $this->_conn_error = $conn; $this->_excep_error = $e; } }