Files
pathfinder/app/main/lib/socket/TcpSocket.php

28 lines
457 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Exodus 4D
* Date: 16.02.2019
* Time: 10:04
*/
namespace lib\socket;
use React\Socket;
class TcpSocket extends AbstractSocket {
/**
* name of Socket
*/
const SOCKET_NAME = 'webSocket';
/**
* @return Socket\ConnectorInterface
*/
protected function getConnector(): Socket\ConnectorInterface {
return new Socket\Connector($this->getLoop(), $this->options);
}
}