[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
This commit is contained in:
parent
48413cfbad
commit
8356130b97
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user