@@ -359,6 +359,7 @@ |
||
| 359 | 359 | /** |
| 360 | 360 | * Load config file |
| 361 | 361 | * @param string Path |
| 362 | + * @param string $path |
|
| 362 | 363 | * @return boolean Success |
| 363 | 364 | */ |
| 364 | 365 | public function loadFile($path) |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Get real frame type identificator |
| 112 | - * @param $type |
|
| 112 | + * @param string|null $type |
|
| 113 | 113 | * @return integer |
| 114 | 114 | */ |
| 115 | 115 | public function getFrameType($type) |
@@ -453,6 +453,9 @@ discard block |
||
| 453 | 453 | return true; |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | + /** |
|
| 457 | + * @param string $proto |
|
| 458 | + */ |
|
| 456 | 459 | protected function switchToProtocol($proto) |
| 457 | 460 | { |
| 458 | 461 | $class = '\\PHPDaemon\\Servers\\WebSocket\\Protocols\\' . $proto; |