From 8356130b9737637e26dbb8ff0c349c287a1343a5 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Fri, 26 Apr 2013 23:01:28 -0400 Subject: [PATCH] [Http] ROUTING BABY Decoupled routing from HTTP Added Router implement HttpServerInterface Fully functional Symfony routes in application! As a result, this drastically decreased backwards compatibility breaks while introducing new functionality --- WsServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WsServer.php b/WsServer.php index 6329cf9..77e3fe1 100644 --- a/WsServer.php +++ b/WsServer.php @@ -73,9 +73,9 @@ class WsServer implements HttpServerInterface { /** * {@inheritdoc} */ - public function onOpen(ConnectionInterface $conn, RequestInterface $headers = null) { + public function onOpen(ConnectionInterface $conn, RequestInterface $request = null) { $conn->WebSocket = new \StdClass; - $conn->WebSocket->request = $headers; + $conn->WebSocket->request = $request; $conn->WebSocket->established = false; $this->attemptUpgrade($conn);