Completed
Push — bugfix/on-before-handshake ( b4f7f7 )
by
unknown
05:04
created
PHPDaemon/Servers/WebSocket/Connection.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.