From 1ed91e193ffe3d4c1572fa2484a7ad6547328c29 Mon Sep 17 00:00:00 2001 From: Baptiste Gaillard Date: Wed, 17 Aug 2016 17:20:44 +0200 Subject: [PATCH] Prepare version 1.0.3. --- README.md | 5 +++++ composer.json | 2 +- composer.lock | 4 ++-- package.json | 2 +- src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php | 7 ++++--- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 915136d..8a26614 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,11 @@ WebSocketClient::factory('ws://localhost:8080')->send( # Release history +## 1.0.3 (2016-08-17) + * Fix `port` and `address` options problems while creating a `WebSocketServer`, the parameter were not + transmitted to the Ratchet server ; + * Now the default port number is `80` which is the default Ratchet server port. + ## 1.0.2 (2016-08-17) * Add missing `symfony/yaml` composer dependency, otherwise problems was encountered while running `composer update --no-dev` ; diff --git a/composer.json b/composer.json index dc1de62..e0b310b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name" : "gomoob/php-websocket-server", - "version" : "1.0.2", + "version" : "1.0.3", "license" : "MIT", "minimum-stability" : "stable", "prefer-stable" : true, diff --git a/composer.lock b/composer.lock index ef6f249..34b86bc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "8b5aa0f2edb0294fb1e730df3d4ae520", - "content-hash": "deb24ad5646565f462ff8169a4958fde", + "hash": "f0a6d600916958db0e6537a912b4dec5", + "content-hash": "9fee8a76a34f727faadd86a1df716c9a", "packages": [ { "name": "cboden/ratchet", diff --git a/package.json b/package.json index bb3a064..189e558 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fatcap-web-sockets", - "version": "1.0.2", + "version": "1.0.3", "repository": { "type": "git", "url": "git://bitbucket.org/gomoob/fatcap-web-sockets.git" diff --git a/src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php b/src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php index 5b0a56e..3eeb04d 100644 --- a/src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php +++ b/src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php @@ -47,7 +47,7 @@ class WebSocketServer implements IWebSocketServer * * `messageParser` A component used to parse messages ; * * `authManager` A component used to manage authorizations. */ - public static function factory(array $options = ['port' => 8080, 'address' => '0.0.0.0']) + public static function factory(array $options = ['port' => 80, 'address' => '0.0.0.0']) { return new WebSocketServer($options); } @@ -62,7 +62,7 @@ public static function factory(array $options = ['port' => 8080, 'address' => '0 * * `messageParser` A component used to parse messages ; * * `authManager` A component used to manage authorizations. */ - public function __construct(array $options = ['port' => 8080, 'address' => '0.0.0.0']) + public function __construct(array $options = ['port' => 80, 'address' => '0.0.0.0']) { // Initialize the Ratchet application $this->ratchetApplication = new RatchetApplication($options); @@ -72,7 +72,8 @@ public function __construct(array $options = ['port' => 8080, 'address' => '0.0. new HttpServer( new WsServer($this->ratchetApplication) ), - $options['port'] + $options['port'], + $options['address'] ); }