Skip to content

Commit 1ed91e1

Browse files
committed
Prepare version 1.0.3.
1 parent 6f3ee16 commit 1ed91e1

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ WebSocketClient::factory('ws://localhost:8080')->send(
332332

333333
# Release history
334334

335+
## 1.0.3 (2016-08-17)
336+
* Fix `port` and `address` options problems while creating a `WebSocketServer`, the parameter were not
337+
transmitted to the Ratchet server ;
338+
* Now the default port number is `80` which is the default Ratchet server port.
339+
335340
## 1.0.2 (2016-08-17)
336341
* Add missing `symfony/yaml` composer dependency, otherwise problems was encountered while running
337342
`composer update --no-dev` ;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "gomoob/php-websocket-server",
3-
"version" : "1.0.2",
3+
"version" : "1.0.3",
44
"license" : "MIT",
55
"minimum-stability" : "stable",
66
"prefer-stable" : true,

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fatcap-web-sockets",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"repository": {
55
"type": "git",
66
"url": "git://bitbucket.org/gomoob/fatcap-web-sockets.git"

src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class WebSocketServer implements IWebSocketServer
4747
* * `messageParser` A component used to parse messages ;
4848
* * `authManager` A component used to manage authorizations.
4949
*/
50-
public static function factory(array $options = ['port' => 8080, 'address' => '0.0.0.0'])
50+
public static function factory(array $options = ['port' => 80, 'address' => '0.0.0.0'])
5151
{
5252
return new WebSocketServer($options);
5353
}
@@ -62,7 +62,7 @@ public static function factory(array $options = ['port' => 8080, 'address' => '0
6262
* * `messageParser` A component used to parse messages ;
6363
* * `authManager` A component used to manage authorizations.
6464
*/
65-
public function __construct(array $options = ['port' => 8080, 'address' => '0.0.0.0'])
65+
public function __construct(array $options = ['port' => 80, 'address' => '0.0.0.0'])
6666
{
6767
// Initialize the Ratchet application
6868
$this->ratchetApplication = new RatchetApplication($options);
@@ -72,7 +72,8 @@ public function __construct(array $options = ['port' => 8080, 'address' => '0.0.
7272
new HttpServer(
7373
new WsServer($this->ratchetApplication)
7474
),
75-
$options['port']
75+
$options['port'],
76+
$options['address']
7677
);
7778
}
7879

0 commit comments

Comments
 (0)