File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727 }
2828 , "require" : {
2929 "php" : " >=5.4.2"
30- , "ratchet/rfc6455" : " ^0.3.1 "
30+ , "ratchet/rfc6455" : " ^0.4.0 "
3131 , "react/socket" : " ^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5"
3232 , "react/event-loop" : " >=0.4"
3333 , "guzzlehttp/psr7" : " ^1.7|^2.0"
34+ , "nyholm/psr7" : " ^1.8"
3435 , "symfony/http-foundation" : " ^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
3536 , "symfony/routing" : " ^2.6|^3.0|^4.0|^5.0|^6.0|^7.0"
3637 }
Original file line number Diff line number Diff line change 11<?php
22namespace Ratchet \WebSocket ;
3+ use Nyholm \Psr7 \Factory \Psr17Factory ;
34use Ratchet \ComponentInterface ;
45use Ratchet \ConnectionInterface ;
56use Ratchet \MessageComponentInterface as DataComponentInterface ;
@@ -86,7 +87,7 @@ public function __construct(ComponentInterface $component) {
8687 $ this ->connections = new \SplObjectStorage ;
8788
8889 $ this ->closeFrameChecker = new CloseFrameChecker ;
89- $ this ->handshakeNegotiator = new ServerNegotiator (new RequestVerifier );
90+ $ this ->handshakeNegotiator = new ServerNegotiator (new RequestVerifier , new Psr17Factory () );
9091 $ this ->handshakeNegotiator ->setStrictSubProtocolCheck (true );
9192
9293 if ($ component instanceof WsServerInterface) {
You can’t perform that action at this time.
0 commit comments