Skip to content

Commit

Permalink
Merge pull request #7 from Askedio/5.3-dev
Browse files Browse the repository at this point in the history
Support for 5.3
  • Loading branch information
gcphost authored Oct 2, 2016
2 parents 7b1d419 + 6065748 commit 43f33df
Show file tree
Hide file tree
Showing 7 changed files with 330 additions and 349 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class RatchetServer extends RatchetServer
~~~
You'll need to change the class to in your command line or config.
~~~
php artisan ratchet:serve --driver=IoServer --class="App\RatchetServer:"
php artisan ratchet:serve --driver=IoServer --class="App\RatchetServer::class"
~~~

# Command Line
Expand All @@ -93,15 +93,15 @@ Options:
--host[=HOST] Ratchet server host [default: "0.0.0.0"]
-p, --port[=PORT] Ratchet server port [default: "9090"]
--class[=CLASS] Class that implements MessageComponentInterface. [default: "Askedio\LaravelRatchet\RatchetServerExample"]
--driver[=DRIVER] Ratchet connection driver [IoServer|WsServer] [default: "IoServer"]
--driver[=DRIVER] Ratchet connection driver [IoServer|WsServer|WampServer] [default: "WampServer"]
...
~~~


# Configuration
There are several configuration values that you will want to change. Publish the configuration then you can edit `config/ratchet.php`.
~~~
php artisan vendor:publish --class="\Askedio\LaravelRatchet\Providers\LaravelRatchetServiceProvider::class"
php artisan vendor:publish
~~~
### Configuration Options
* **class**: Your MessageComponentInterface or WampServerInterface class.
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"type": "library",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"cboden/ratchet": "^0.3.4",
"ext-zmq": "*",
"laravel/framework": "5.*",
"cboden/ratchet": "^0.3",
"graham-campbell/throttle": "^5.2",
"react/zmq": "0.2.*|0.3.*"
},
Expand Down
Loading

0 comments on commit 43f33df

Please sign in to comment.