| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class MaxConnectionsBench |
||
| 12 | { |
||
| 13 | private const WS_SCHEME = 'ws://'; |
||
| 14 | private const WS_HOST = 'localhost'; |
||
| 15 | private const WS_PORT = ':8000'; |
||
| 16 | private const WS_URI = '/notifications/messanger/vkjsndfvjn23243'; |
||
| 17 | |||
| 18 | private string $url = self::WS_SCHEME . self::WS_HOST . self::WS_PORT . self::WS_URI; |
||
| 19 | private WebSocketClient $client; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @throws \WSSC\Exceptions\BadUriException |
||
| 23 | * @throws \WSSC\Exceptions\ConnectionException |
||
| 24 | */ |
||
| 25 | public function __construct() |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Revs(10000) |
||
| 32 | * @Iterations(3) |
||
| 33 | * @throws Exception |
||
| 34 | */ |
||
| 35 | public function benchConnect(): void |
||
| 40 |