Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class WebSocketClient extends WscMain |
||
9 | { |
||
10 | /** |
||
11 | * Sets parameters for Web Socket Client intercommunication |
||
12 | * |
||
13 | * @param string $url string representation of a socket utf, ex.: tcp://www.example.com:8000 or udp://example.com:13 |
||
14 | * @param ClientConfig $config Client configuration settings e.g.: connection - timeout, ssl options, fragment message size to send etc. |
||
15 | * @throws \InvalidArgumentException |
||
16 | * @throws Exceptions\BadUriException |
||
17 | * @throws Exceptions\ConnectionException |
||
18 | * @throws \Exception |
||
19 | */ |
||
20 | public function __construct(string $url, ClientConfig $config) |
||
26 |