entryption params

This commit is contained in:
Chris Boden 2017-09-10 14:41:56 -04:00
parent 2594ebced4
commit 0cde24bae7
2 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@ CHANGELOG
* BC: $conn->WebSocket->request replaced with $conn->httpRequest which is a PSR-7 object * BC: $conn->WebSocket->request replaced with $conn->httpRequest which is a PSR-7 object
* Binary messages now supported via Ratchet\WebSocket\MessageComponentInterface * Binary messages now supported via Ratchet\WebSocket\MessageComponentInterface
* Added heartbeat support via ping/pong in WsServer * Added heartbeat support via ping/pong in WsServer
* SSL now supported * TLS now supported
* BC: No longer support old (and insecure) Hixie76 and Hybi protocols * BC: No longer support old (and insecure) Hixie76 and Hybi protocols
* BC: No longer support disabling UTF-8 checks * BC: No longer support disabling UTF-8 checks
* BC: The Session component implements HttpServerInterface instead of WsServerInterface * BC: The Session component implements HttpServerInterface instead of WsServerInterface

View File

@ -56,10 +56,11 @@ class App {
protected $_routeCounter = 0; protected $_routeCounter = 0;
/** /**
* @param string $httpHost HTTP hostname clients intend to connect to. MUST match JS `new WebSocket('ws://$httpHost');` * @param string $httpHost HTTP hostname clients intend to connect to. MUST match JS `new WebSocket('ws://$httpHost');`
* @param int $port Port to listen on. If 80, assuming production, Flash on 843 otherwise expecting Flash to be proxied through 8843 * @param int $port Port to listen on. If 80, assuming production, Flash on 843 otherwise expecting Flash to be proxied through 8843
* @param string $address IP address to bind to. Default is localhost/proxy only. '0.0.0.0' for any machine. * @param string $address IP address to bind to. Default is localhost/proxy only. '0.0.0.0' for any machine.
* @param LoopInterface $loop Specific React\EventLoop to bind the application to. null will create one for you. * @param LoopInterface $loop Specific React\EventLoop to bind the application to. null will create one for you.
* @param array $sslContext An array of PHP stream context options in order to support SSL
*/ */
public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null, array $sslContext = null) { public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null, array $sslContext = null) {
if (extension_loaded('xdebug')) { if (extension_loaded('xdebug')) {