Skip to content

Commit

Permalink
Prepare version 1.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaillard committed Aug 17, 2016
1 parent 6f3ee16 commit 1ed91e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` ;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 4 additions & 3 deletions src/main/php/Gomoob/WebSocket/Server/WebSocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand All @@ -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']
);
}

Expand Down

0 comments on commit 1ed91e1

Please sign in to comment.