You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you setup all your routes for the pub/sub requests to the HTTP routes in in the `location` directives for *Nginx*, then you'll be able to quickly open a socket on your client use the **pushstream.js** and push your broadcasts out using websocket or long-polling.
12
+
Once you setup all your routes for the pub/sub requests to the HTTP routes in the `location` directives for *Nginx*, then you'll be able to quickly open a socket on your client use the **pushstream.js** and push your broadcasts out using websocket or long-polling.
13
13
14
14
The *pub/sub* requests are internally called by the [GuzzleHttp](http://guzzle.readthedocs.org/en/latest/) package. The `broadcasting.php` config file will use the **pushstream** driver where you can control the HTTP requests to the to your pub/sub endpoints.
15
15
16
-
You can lock down your pub/sub nginx endpoints using the [Access Key Module](http://wiki.nginx.org/HttpAccessKeyModule). Here you can configure the key
16
+
You can lock down your pub/sub nginx endpoints using the [Access Key Module](http://wiki.nginx.org/HttpAccessKeyModule). Here you can configure the key.
17
17
18
18
## Requirements
19
19
20
-
***HTTP Pushstream Module:** You must compile the Nginx HTTP Pushstream module. Here are some instructions on how to do it here for the module itself on github:
20
+
***HTTP Pushstream Module:** You must compile the Nginx HTTP Pushstream module. Here are some instructions on how to do it here for the module itself on github:
*[I have made an Ubuntu install script](scripts/install_nginx_pushstream_module.sh)
24
24
25
-
***Acces Key Module** Also, if you want to use the `access_key` feature to the routes for the pub/sub then please also install the [Access Key Module](http://wiki.nginx.org/HttpAccessKeyModule)
25
+
***Acces Key Module** Also, if you want to use the `access_key` feature to the routes for the pub/sub then please also install the [Access Key Module](http://wiki.nginx.org/HttpAccessKeyModule).
26
26
27
27
28
28
## Installation
29
29
30
30
1. Do a composer require get this package: `composer require cmosguy/laravel-http-pushstream-broadcaster`
31
31
32
-
2. Next, go into your `config/broadcasting.php` file and add and adjust the following lines accordingly.`base_url` refers to websocket root for your HTTP requests pub/sub routes:
32
+
2. Next, go into your `config/broadcasting.php` file and add the following lines accordingly. `base_url` refers to websocket root for your HTTP requests pub/sub routes:
33
33
34
34
'default' => pushstream,
35
35
@@ -48,7 +48,7 @@ You can lock down your pub/sub nginx endpoints using the [Access Key Module](htt
48
48
49
49
push_stream_shared_memory_size 32M;
50
50
51
-
2. Edit your config file for your routes in the `server {` section. Obviously, you need to understand and modify the items below. The folling config information is just meant to get you started. If you want a more thorough config check out [this](https://gist.github.com/dctrwatson/0b3b52050254e273ff11#file-nginx-v):
51
+
2. Edit your config file for your routes in the `server {` section. Obviously, you need to understand and modify the items below. The following config information is just meant to get you started. If you want a more thorough config check out [this](https://gist.github.com/dctrwatson/0b3b52050254e273ff11#file-nginx-v):
52
52
53
53
location /channels-stats {
54
54
# activate channels statistics mode for this location
@@ -162,16 +162,16 @@ Please download the **pushstream.js** from either following locations:
162
162
At this time the only way to get more information from about the module and the capabilities is directly from the github repository, so do some reading here:
* See how the pushstream.js example works here: http://www.nginxpushstream.com/chat.html
166
-
* Also read more about the pushstream.js here: https://github.com/wandenberg/nginx-push-stream-module/blob/master/docs/examples/websocket.textile#websocket-
165
+
* See how the pushstream.js example works here: http://www.nginxpushstream.com/chat.html
166
+
* Also read more about the pushstream.js here: https://github.com/wandenberg/nginx-push-stream-module/blob/master/docs/examples/websocket.textile#websocket-
167
167
168
168
169
169
# Disclaimer
170
170
171
-
This is by no means the only want to go about how this should work. You need to understand what all the options do and there is definitely a a
171
+
This is by no means the only way to go about how this should work. You need to understand what all the options do and there is definitely a a
172
172
173
173
# Help
174
-
Please help me with updating this documentation. If it does not make sense or if you see something stupid let me know. Also, if there is a way to make this extend further and make it more flexible for othher's pleaes offer a PR and can improve upon these.
174
+
Please help me with updating this documentation. If it does not make sense or if you see something stupid let me know. Also, if there is a way to make this extend further and make it more flexible for others, please submit a PR to improve upon these.
0 commit comments