From 70e2577be704f4ff4064b74ba0c3b5e08eb1f0b3 Mon Sep 17 00:00:00 2001 From: kzbandai Date: Sun, 14 May 2017 01:54:18 +0900 Subject: [PATCH 1/5] Add space on README.md because it looked strange on github.com --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 92aa73c..d1cbcd6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Ratchet +# Ratchet [![Build Status](https://secure.travis-ci.org/ratchetphp/Ratchet.png?branch=master)](http://travis-ci.org/ratchetphp/Ratchet) [![Latest Stable Version](https://poser.pugx.org/cboden/ratchet/v/stable.png)](https://packagist.org/packages/cboden/ratchet) @@ -6,13 +6,13 @@ A PHP 5.3 library for asynchronously serving WebSockets. Build up your application through simple interfaces and re-use your application without changing any of its code just by combining different components. -##WebSocket Compliance +## WebSocket Compliance * Supports the RFC6455, HyBi-10+, and Hixie76 protocol versions (at the same time) * Tested on Chrome 13+, Firefox 6+, Safari 5+, iOS 4.2+, IE 8+ * Ratchet [passes](http://socketo.me/reports/ab/) the [Autobahn Testsuite](http://autobahn.ws/testsuite) (non-binary messages) -##Requirements +## Requirements Shell access is required and root access is recommended. To avoid proxy/firewall blockage it's recommended WebSockets are requested on port 80 or 443 (SSL), which requires root access. @@ -31,7 +31,7 @@ Need help? Have a question? Want to provide feedback? Write a message on the --- -###A quick example +### A quick example ```php Date: Sat, 29 Jul 2017 13:11:47 -0400 Subject: [PATCH 2/5] Try using trusty on Travis for HHVM --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3f632e3..d48d881 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +dist: trusty +sudo: required + language: php php: From c8adbca8306ed595072d323923a59fb04cf7e447 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sat, 29 Jul 2017 13:17:19 -0400 Subject: [PATCH 3/5] Trusty only on HHVM --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d48d881..ba1a2df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,3 @@ -dist: trusty -sudo: required - language: php php: @@ -12,6 +9,13 @@ php: - 7.1 - hhvm +matrix: + include: + - php: hhvm + dist: trusty + allow_failures: + - php: hhvm + before_script: - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "session.serialize_handler = php" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - composer install --dev --prefer-source From 1c28d187ce025e48314bb3dcce6f667597aee171 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sat, 29 Jul 2017 13:24:26 -0400 Subject: [PATCH 4/5] Remove HHVM from precise --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba1a2df..b371c6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ php: - 5.6 - 7.0 - 7.1 - - hhvm matrix: include: From 7c05c5cdae1db6e211790eabb3e01783b8d1c178 Mon Sep 17 00:00:00 2001 From: Kolbasyatin Date: Sat, 2 Sep 2017 23:19:36 +0300 Subject: [PATCH 5/5] Update Topic.php We can send message not only string, but array also, so, IDE does unpleasant highlights. --- src/Ratchet/Wamp/Topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ratchet/Wamp/Topic.php b/src/Ratchet/Wamp/Topic.php index 3fe73d1..7bde5e0 100644 --- a/src/Ratchet/Wamp/Topic.php +++ b/src/Ratchet/Wamp/Topic.php @@ -38,7 +38,7 @@ class Topic implements \IteratorAggregate, \Countable { /** * Send a message to all the connections in this topic - * @param string $msg Payload to publish + * @param string|array $msg Payload to publish * @param array $exclude A list of session IDs the message should be excluded from (blacklist) * @param array $eligible A list of session Ids the message should be send to (whitelist) * @return Topic The same Topic object to chain