@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Get real frame type identificator |
106 | - * @param $type |
|
106 | + * @param string|null $type |
|
107 | 107 | * @return integer |
108 | 108 | */ |
109 | 109 | public function getFrameType($type) { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | /** |
210 | 210 | * Called when we're going to handshake. |
211 | - * @return boolean Handshake status |
|
211 | + * @return false|null Handshake status |
|
212 | 212 | */ |
213 | 213 | public function handshake() { |
214 | 214 | $this->route = $this->pool->getRoute($this->server['DOCUMENT_URI'], $this); |
@@ -432,6 +432,9 @@ discard block |
||
432 | 432 | return true; |
433 | 433 | } |
434 | 434 | |
435 | + /** |
|
436 | + * @param string $proto |
|
437 | + */ |
|
435 | 438 | protected function switchToProtocol($proto) { |
436 | 439 | $class = '\\PHPDaemon\\Servers\\WebSocket\\Protocols\\' . $proto; |
437 | 440 | $conn = new $class(null, $this->pool); |