@@ -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; |