aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-24 15:18:21 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-24 15:18:21 +0100
commitc018385af6ae303bdf65a8073c9bf60257eb80f8 (patch)
tree36677a7f37c4a71a6615414e1f3c2d327311d422
parent934f949747f44402571f20aa886dbd43c22cbfdb (diff)
parent74ce0c5b95a17aaea79fdb7cea264c9eae4f76c8 (diff)
downloadWebsocket-c018385af6ae303bdf65a8073c9bf60257eb80f8.zip
Websocket-c018385af6ae303bdf65a8073c9bf60257eb80f8.tar.gz
Websocket-c018385af6ae303bdf65a8073c9bf60257eb80f8.tar.bz2
Merge branch 'incoming' into issue_58
-rw-r--r--.travis.yml57
-rw-r--r--Bin/Client.php4
-rw-r--r--CHANGELOG.md13
-rw-r--r--Client.php4
-rw-r--r--Connection.php4
-rw-r--r--Exception/BadProtocol.php4
-rw-r--r--Exception/CloseError.php4
-rw-r--r--Exception/Exception.php4
-rw-r--r--Exception/InvalidMessage.php4
-rw-r--r--Node.php4
-rw-r--r--Protocol/Generic.php4
-rw-r--r--Protocol/Hybi00.php4
-rw-r--r--Protocol/Rfc6455.php4
-rw-r--r--README.md111
-rw-r--r--Server.php10
-rw-r--r--Socket.php4
-rw-r--r--Test/Integration/Protocol/Rfc6455.php8
-rw-r--r--Test/Unit/Client.php6
-rw-r--r--Test/Unit/Connection.php6
-rw-r--r--Test/Unit/Exception/BadProtocol.php4
-rw-r--r--Test/Unit/Exception/CloseError.php4
-rw-r--r--Test/Unit/Exception/Exception.php4
-rw-r--r--Test/Unit/Exception/InvalidMessage.php4
-rw-r--r--Test/Unit/Node.php6
-rw-r--r--Test/Unit/Protocol/Generic.php6
-rw-r--r--Test/Unit/Protocol/Hybi00.php6
-rw-r--r--Test/Unit/Protocol/Rfc6455.php6
-rw-r--r--Test/Unit/Server.php6
-rw-r--r--Test/Unit/Socket.php6
-rw-r--r--composer.json12
30 files changed, 234 insertions, 89 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c2334b7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,57 @@
+language: php
+
+matrix:
+ include:
+ - php: 5.5
+ - php: 5.6
+ - php: 7.0
+ - php: 7.1
+ env:
+ - ENABLE_XDEBUG=true
+ - php: 7.1
+ env:
+ - ENABLE_DEVTOOLS=true
+ - php: nightly
+ - php: hhvm-3.12
+ sudo: required
+ dist: trusty
+ group: edge
+ - php: hhvm
+ sudo: required
+ dist: trusty
+ group: edge
+ allow_failures:
+ - php: nightly
+ - php: hhvm-3.12
+ - php: hhvm
+ fast_finish: true
+
+os:
+ - linux
+
+notifications:
+ irc: "chat.freenode.net#hoaproject"
+
+sudo: false
+
+env:
+ global:
+ - secure: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCP/MRQTkDEQdlnhiVbW5dl3dSPBI8KO0EkCLRJ8mEOJ6gm9VH0yy2IyiBuGa+Oyj+cbdKkASN4B/nMvPS+POG9Qd+z9aSmgYZd1ZwVbmu1r0ag53qhQAiodLudzBpjS3RA0MJyX3IJu7HdMNo8qhx0M9WF+vGkcOAYqbsifakO8Q=="
+
+cache:
+ directories:
+ - vendor/
+
+before_script:
+ - export PATH="$PATH:$HOME/.composer/vendor/bin"
+ - if [[ ! $ENABLE_XDEBUG ]]; then
+ phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
+ fi
+
+script:
+ - composer install
+ - vendor/bin/hoa test:run
+ - if [[ $ENABLE_DEVTOOLS ]]; then
+ composer global require friendsofphp/php-cs-fixer;
+ vendor/bin/hoa devtools:cs --diff --dry-run .;
+ fi
diff --git a/Bin/Client.php b/Bin/Client.php
index 9664294..2e51e20 100644
--- a/Bin/Client.php
+++ b/Bin/Client.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket;
*
* Basic WebSocket client.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Client extends Console\Dispatcher\Kit
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74b8cf6..78a9629 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,16 @@
+# 3.17.01.09
+
+ * Quality: Happy new year! (Ivan Enderlin, 2017-01-09T14:50:50+01:00)
+ * Test: Fix namespace. (Ivan Enderlin, 2016-10-25T08:01:35+02:00)
+ * Quality: Fix `CHANGELOG.md`. (Ivan Enderlin, 2016-10-24T15:58:06+02:00)
+
+# 3.16.10.24
+
+ * Documentation: Update Composer instructions. (Ivan Enderlin, 2016-10-14T23:51:25+02:00)
+ * Documentation: New `README.md` file. (Ivan Enderlin, 2016-10-14T23:47:22+02:00)
+ * Connection: Start TLS encryption on handshake. (Ivan Enderlin, 2016-10-11T09:20:45+02:00)
+ * Documentation: Update `support` properties. (Ivan Enderlin, 2016-10-11T08:51:04+02:00)
+
# 3.16.07.05
* Test: Write integration test suite. (Ivan Enderlin, 2016-06-20T09:43:20+02:00)
diff --git a/Client.php b/Client.php
index 9b6fb58..4a8969b 100644
--- a/Client.php
+++ b/Client.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -46,7 +46,7 @@ use Hoa\Socket as HoaSocket;
*
* A cross-protocol Websocket client.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Client extends Connection
diff --git a/Connection.php b/Connection.php
index 96a70c6..394f6df 100644
--- a/Connection.php
+++ b/Connection.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Socket as HoaSocket;
*
* A cross-protocol Websocket connection.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
abstract class Connection
diff --git a/Exception/BadProtocol.php b/Exception/BadProtocol.php
index ec26354..0d40a81 100644
--- a/Exception/BadProtocol.php
+++ b/Exception/BadProtocol.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@ namespace Hoa\Websocket\Exception;
*
* Extending the \Hoa\Websocket\Exception class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class BadProtocol extends Exception
diff --git a/Exception/CloseError.php b/Exception/CloseError.php
index 4a2339c..979863b 100644
--- a/Exception/CloseError.php
+++ b/Exception/CloseError.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@ namespace Hoa\Websocket\Exception;
*
* Extending the \Hoa\Websocket\Exception class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class CloseError extends Exception
diff --git a/Exception/Exception.php b/Exception/Exception.php
index 0a8154a..4743037 100644
--- a/Exception/Exception.php
+++ b/Exception/Exception.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@ use Hoa\Exception as HoaException;
*
* Extending the \Hoa\Exception\Exception class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Exception extends HoaException
diff --git a/Exception/InvalidMessage.php b/Exception/InvalidMessage.php
index 4ec3c20..221f858 100644
--- a/Exception/InvalidMessage.php
+++ b/Exception/InvalidMessage.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -41,7 +41,7 @@ namespace Hoa\Websocket\Exception;
*
* Extending the \Hoa\Websocket\Exception class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class InvalidMessage extends Exception
diff --git a/Node.php b/Node.php
index 8fee5a2..682e786 100644
--- a/Node.php
+++ b/Node.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -43,7 +43,7 @@ use Hoa\Socket as HoaSocket;
*
* Describe a WebSocket node.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Node extends HoaSocket\Node
diff --git a/Protocol/Generic.php b/Protocol/Generic.php
index a3f4ee0..22f6680 100644
--- a/Protocol/Generic.php
+++ b/Protocol/Generic.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket;
*
* An abstract protocol implementation.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
abstract class Generic
diff --git a/Protocol/Hybi00.php b/Protocol/Hybi00.php
index c26f119..f729f77 100644
--- a/Protocol/Hybi00.php
+++ b/Protocol/Hybi00.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@ use Hoa\Websocket;
*
* Protocol implementation: draft-ietf-hybi-thewebsocketprotocol-00.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Hybi00 extends Generic
diff --git a/Protocol/Rfc6455.php b/Protocol/Rfc6455.php
index 79ce5b7..efa926e 100644
--- a/Protocol/Rfc6455.php
+++ b/Protocol/Rfc6455.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@ use Hoa\Websocket;
*
* Protocol implementation: RFC6455.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Rfc6455 extends Generic
diff --git a/README.md b/README.md
index 92934dd..b28e499 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,27 @@
-![Hoa](http://static.hoa-project.net/Image/Hoa_small.png)
-
-Hoa is a **modular**, **extensible** and **structured** set of PHP libraries.
-Moreover, Hoa aims at being a bridge between industrial and research worlds.
-
-# Hoa\Websocket ![state](http://central.hoa-project.net/State/Websocket)
+<p align="center">
+ <img src="https://static.hoa-project.net/Image/Hoa.svg" alt="Hoa" width="250px" />
+</p>
+
+---
+
+<p align="center">
+ <a href="https://travis-ci.org/hoaproject/Websocket"><img src="https://img.shields.io/travis/hoaproject/Websocket/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Websocket?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Websocket/master.svg" alt="Code coverage" /></a>
+ <a href="https://packagist.org/packages/hoa/websocket"><img src="https://img.shields.io/packagist/dt/hoa/websocket.svg" alt="Packagist" /></a>
+ <a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/websocket.svg" alt="License" /></a>
+</p>
+<p align="center">
+ Hoa is a <strong>modular</strong>, <strong>extensible</strong> and
+ <strong>structured</strong> set of PHP libraries.<br />
+ Moreover, Hoa aims at being a bridge between industrial and research worlds.
+</p>
+
+# Hoa\Websocket
+
+[![Help on IRC](https://img.shields.io/badge/help-%23hoaproject-ff0066.svg)](https://webchat.freenode.net/?channels=#hoaproject)
+[![Help on Gitter](https://img.shields.io/badge/help-gitter-ff0066.svg)](https://gitter.im/hoaproject/central)
+[![Documentation](https://img.shields.io/badge/documentation-hack_book-ff0066.svg)](https://central.hoa-project.net/Documentation/Library/Websocket)
+[![Board](https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/websocket)
This library allows to manipulate the WebSocket protocol and proposes a server
and a client. It supports two specifications
@@ -11,22 +29,37 @@ and a client. It supports two specifications
[Hybi](https://tools.ietf.org/wg/hybi/draft-ietf-hybi-thewebsocketprotocol/) (at
the same time).
+[Learn more](https://central.hoa-project.net/Documentation/Library/Websocket).
+
## Installation
-With [Composer](http://getcomposer.org/), to include this library into your
-dependencies, you need to require
-[`hoa/websocket`](https://packagist.org/packages/hoa/websocket):
+With [Composer](https://getcomposer.org/), to include this library into
+your dependencies, you need to
+require [`hoa/websocket`](https://packagist.org/packages/hoa/websocket):
+
+```sh
+$ composer require hoa/websocket '~3.0'
+```
+
+For more installation procedures, please read [the Source
+page](https://hoa-project.net/Source.html).
-```json
-{
- "require": {
- "hoa/websocket": "~3.0"
- }
-}
+## Testing
+
+Before running the test suites, the development dependencies must be installed:
+
+```sh
+$ composer install
+```
+
+Then, to run all the test suites:
+
+```sh
+$ vendor/bin/hoa test:run
```
-Please, read the website to [get more informations about how to
-install](http://hoa-project.net/Source.html).
+For more information, please read the [contributor
+guide](https://hoa-project.net/Literature/Contributor/Guide.html).
## Quick usage
@@ -129,16 +162,50 @@ Here we are. All sent messages are echoed.
The following awecodes show this library in action:
- * [`Hoa\Websocket`](http://hoa-project.net/Awecode/Websocket.html):
+ * [`Hoa\Websocket`](https://hoa-project.net/Awecode/Websocket.html):
*why and how to use `Hoa\Websocket\Server` and `Hoa\Websocket\Client`? A
simple example will illustrate the WebSocket protocol*.
## Documentation
-Different documentations can be found on the website:
-[http://hoa-project.net/](http://hoa-project.net/).
+The
+[hack book of `Hoa\Websocket`](https://central.hoa-project.net/Documentation/Library/Websocket) contains
+detailed information about how to use this library and how it works.
+
+To generate the documentation locally, execute the following commands:
+
+```sh
+$ composer require --dev hoa/devtools
+$ vendor/bin/hoa devtools:documentation --open
+```
+
+More documentation can be found on the project's website:
+[hoa-project.net](https://hoa-project.net/).
+
+## Getting help
+
+There are mainly two ways to get help:
+
+ * On the [`#hoaproject`](https://webchat.freenode.net/?channels=#hoaproject)
+ IRC channel,
+ * On the forum at [users.hoa-project.net](https://users.hoa-project.net).
+
+## Contribution
+
+Do you want to contribute? Thanks! A detailed [contributor
+guide](https://hoa-project.net/Literature/Contributor/Guide.html) explains
+everything you need to know.
## License
-Hoa is under the New BSD License (BSD-3-Clause). Please, see
-[`LICENSE`](http://hoa-project.net/LICENSE).
+Hoa is under the New BSD License (BSD-3-Clause). Please, see
+[`LICENSE`](https://hoa-project.net/LICENSE) for details.
+
+## Related projects
+
+The following projects are using this library:
+
+ * [Marvirc](https://github.com/Hywan/Marvirc), A dead simple,
+ extremely modular and blazing fast IRC bot,
+ * [WellCommerce](http://wellcommerce.org/), Modern e-commerce engine
+ built on top of Symfony 3 full-stack framework.
diff --git a/Server.php b/Server.php
index d7c3fdb..0495841 100644
--- a/Server.php
+++ b/Server.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@ use Hoa\Socket as HoaSocket;
*
* A cross-protocol Websocket server.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Server extends Connection
@@ -89,6 +89,12 @@ class Server extends Connection
protected function doHandshake()
{
$connection = $this->getConnection();
+
+ if (true === $connection->getSocket()->isSecured() &&
+ false === $connection->isEncrypted()) {
+ $connection->enableEncryption(true, $connection::ENCRYPTION_TLS);
+ }
+
$buffer = $connection->read(2048);
$request = $this->getRequest();
$request->parse($buffer);
diff --git a/Socket.php b/Socket.php
index 4335b51..8c6c371 100644
--- a/Socket.php
+++ b/Socket.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -43,7 +43,7 @@ use Hoa\Socket as HoaSocket;
*
* WebSocket specific socket and transports.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Socket extends HoaSocket
diff --git a/Test/Integration/Protocol/Rfc6455.php b/Test/Integration/Protocol/Rfc6455.php
index 427048e..375f74b 100644
--- a/Test/Integration/Protocol/Rfc6455.php
+++ b/Test/Integration/Protocol/Rfc6455.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Integration;
+namespace Hoa\Websocket\Test\Integration\Protocol;
use Hoa\Event;
use Hoa\Socket;
@@ -46,7 +46,7 @@ use Hoa\Websocket;
*
* Test suite of the RFC6455 protocol.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Rfc6455 extends Test\Integration\Suite
@@ -586,7 +586,7 @@ class Rfc6455 extends Test\Integration\Suite
*
* An exception that is thrown to stop the server and exits gently.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class StopServerException extends \RuntimeException
diff --git a/Test/Unit/Client.php b/Test/Unit/Client.php
index b75daff..d526c61 100644
--- a/Test/Unit/Client.php
+++ b/Test/Unit/Client.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit;
+namespace Hoa\Websocket\Test\Unit;
use Hoa\Event;
use Hoa\Http;
@@ -48,7 +48,7 @@ use Mock\Hoa\Socket;
*
* Test suite for the WebSocket client class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Client extends Test\Unit\Suite
diff --git a/Test/Unit/Connection.php b/Test/Unit/Connection.php
index 0d687be..f7fddf8 100644
--- a/Test/Unit/Connection.php
+++ b/Test/Unit/Connection.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit;
+namespace Hoa\Websocket\Test\Unit;
use Hoa\Event;
use Hoa\Socket;
@@ -47,7 +47,7 @@ use Mock\Hoa\Websocket\Connection as SUT;
*
* Test suite for the WebSocket connection class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Connection extends Test\Unit\Suite
diff --git a/Test/Unit/Exception/BadProtocol.php b/Test/Unit/Exception/BadProtocol.php
index 1c84c2d..1c976cc 100644
--- a/Test/Unit/Exception/BadProtocol.php
+++ b/Test/Unit/Exception/BadProtocol.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket\Exception\BadProtocol as SUT;
*
* Test suite of the bad protocol exception.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class BadProtocol extends Test\Unit\Suite
diff --git a/Test/Unit/Exception/CloseError.php b/Test/Unit/Exception/CloseError.php
index b77cf21..d98d426 100644
--- a/Test/Unit/Exception/CloseError.php
+++ b/Test/Unit/Exception/CloseError.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket\Exception\CloseError as SUT;
*
* Test suite of the close error exception.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class CloseError extends Test\Unit\Suite
diff --git a/Test/Unit/Exception/Exception.php b/Test/Unit/Exception/Exception.php
index f54fae4..77fd3c4 100644
--- a/Test/Unit/Exception/Exception.php
+++ b/Test/Unit/Exception/Exception.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket\Exception as SUT;
*
* Test suite of the exception.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Exception extends Test\Unit\Suite
diff --git a/Test/Unit/Exception/InvalidMessage.php b/Test/Unit/Exception/InvalidMessage.php
index d64e4d2..4e9b08f 100644
--- a/Test/Unit/Exception/InvalidMessage.php
+++ b/Test/Unit/Exception/InvalidMessage.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -45,7 +45,7 @@ use Hoa\Websocket\Exception\InvalidMessage as SUT;
*
* Test suite of the bad protocol exception.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class InvalidMessage extends Test\Unit\Suite
diff --git a/Test/Unit/Node.php b/Test/Unit/Node.php
index 27ef0bb..c7680d3 100644
--- a/Test/Unit/Node.php
+++ b/Test/Unit/Node.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit;
+namespace Hoa\Websocket\Test\Unit;
use Hoa\Socket as HoaSocket;
use Hoa\Test;
@@ -45,7 +45,7 @@ use Mock\Hoa\Websocket\Node as SUT;
*
* Test suite for the node class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Node extends Test\Unit\Suite
diff --git a/Test/Unit/Protocol/Generic.php b/Test/Unit/Protocol/Generic.php
index fb6ff8d..a0e5fec 100644
--- a/Test/Unit/Protocol/Generic.php
+++ b/Test/Unit/Protocol/Generic.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit\Protocol;
+namespace Hoa\Websocket\Test\Unit\Protocol;
use Hoa\Test;
use Mock\Hoa\Socket;
@@ -45,7 +45,7 @@ use Mock\Hoa\Websocket\Protocol\Generic as SUT;
*
* Test suite for the generic protocol class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Generic extends Test\Unit\Suite
diff --git a/Test/Unit/Protocol/Hybi00.php b/Test/Unit/Protocol/Hybi00.php
index 21e7285..9ff9283 100644
--- a/Test/Unit/Protocol/Hybi00.php
+++ b/Test/Unit/Protocol/Hybi00.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit\Protocol;
+namespace Hoa\Websocket\Test\Unit\Protocol;
use Hoa\Test;
use Hoa\Websocket;
@@ -47,7 +47,7 @@ use Mock\Hoa\Websocket\Protocol\Hybi00 as SUT;
*
* Test suite for the Hybi00 protocol implementation.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Hybi00 extends Test\Unit\Suite
diff --git a/Test/Unit/Protocol/Rfc6455.php b/Test/Unit/Protocol/Rfc6455.php
index bd114ac..e2ab439 100644
--- a/Test/Unit/Protocol/Rfc6455.php
+++ b/Test/Unit/Protocol/Rfc6455.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit\Protocol;
+namespace Hoa\Websocket\Test\Unit\Protocol;
use Hoa\Test;
use Hoa\Websocket;
@@ -47,7 +47,7 @@ use Mock\Hoa\Websocket\Protocol\Rfc6455 as SUT;
*
* Test suite for the RFC6455 protocol implementation.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Rfc6455 extends Test\Unit\Suite
diff --git a/Test/Unit/Server.php b/Test/Unit/Server.php
index 047c472..961116d 100644
--- a/Test/Unit/Server.php
+++ b/Test/Unit/Server.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit;
+namespace Hoa\Websocket\Test\Unit;
use Hoa\Http;
use Hoa\Test;
@@ -47,7 +47,7 @@ use Mock\Hoa\Socket;
*
* Test suite for the WebSocket server class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Server extends Test\Unit\Suite
diff --git a/Test/Unit/Socket.php b/Test/Unit/Socket.php
index c4c6e40..53eb452 100644
--- a/Test/Unit/Socket.php
+++ b/Test/Unit/Socket.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2016, Hoa community. All rights reserved.
+ * Copyright © 2007-2017, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-namespace Hoa\Webocket\Test\Unit;
+namespace Hoa\Websocket\Test\Unit;
use Hoa\Socket as HoaSocket;
use Hoa\Test;
@@ -45,7 +45,7 @@ use Hoa\Websocket\Socket as SUT;
*
* Test suite for the socket class.
*
- * @copyright Copyright © 2007-2016 Hoa community
+ * @copyright Copyright © 2007-2017 Hoa community
* @license New BSD License
*/
class Socket extends Test\Unit\Suite
diff --git a/composer.json b/composer.json
index 841aa3f..10f2d99 100644
--- a/composer.json
+++ b/composer.json
@@ -4,7 +4,7 @@
"type" : "library",
"keywords" : ["library", "websocket", "server", "client", "realtime",
"socket", "rfc6455", "rfc3986", "rfc3629", "hybi"],
- "homepage" : "http://hoa-project.net/",
+ "homepage" : "https://hoa-project.net/",
"license" : "BSD-3-Clause",
"authors" : [
{
@@ -13,13 +13,15 @@
},
{
"name" : "Hoa community",
- "homepage": "http://hoa-project.net/"
+ "homepage": "https://hoa-project.net/"
}
],
"support": {
- "email" : "support@lists.hoa-project.net",
- "irc" : "irc://irc.freenode.org/hoaproject",
- "source": "http://git.hoa-project.net/"
+ "email" : "support@hoa-project.net",
+ "irc" : "irc://chat.freenode.net/hoaproject",
+ "forum" : "https://users.hoa-project.net/",
+ "docs" : "https://central.hoa-project.net/Documentation/Library/Websocket",
+ "source": "https://central.hoa-project.net/Resource/Library/Websocket"
},
"require": {
"hoa/consistency": "~1.0",