README.md in puggernaut-0.1.3 vs README.md in puggernaut-0.1.4
- old
+ new
@@ -28,11 +28,11 @@
<pre>
puggernaut <http port> <tcp port>
</pre>
-The default HTTP and TCP ports are 8000 and 8001, respectively.
+The default HTTP and TCP ports are 8100 and 8101, respectively.
Set up proxy pass
-----------------
You will need to set up a URL on your public facing web server that points to the Puggernaut HTTP server.
@@ -42,31 +42,31 @@
### Apache
*http.conf*
<pre>
-ProxyPass /long_poll http://localhost:8000/
-ProxyPassReverse /long_poll http://localhost:8000/
+ProxyPass /long_poll http://localhost:8100/
+ProxyPassReverse /long_poll http://localhost:8100/
</pre>
### Nginx
*nginx.conf*
<pre>
location /long_poll {
- proxy_pass http://localhost:8000/;
+ proxy_pass http://localhost:8100/;
}
</pre>
Send push messages
------------------
<pre>
require 'puggernaut'
-client = Puggernaut::Client.new("localhost:8001", "localhost:9001")
+client = Puggernaut::Client.new("localhost:8101", "localhost:9101")
client.push :channel => "message"
client.push :channel => [ "message 1", "message 2" ], :channel_2 => "message"
</pre>
The <code>Client.new</code> initializer accepts any number of TCP server addresses.
@@ -107,10 +107,10 @@
server_name localhost;
root /Users/me/puggernaut/public;
passenger_enabled on;
location /long_poll {
- proxy_pass http://localhost:8000/;
+ proxy_pass http://localhost:8100/;
}
}
</pre>
You have now set up an instance of [Puggernaut's spec server](https://github.com/winton/puggernaut/blob/master/lib/puggernaut/spec_server.rb).
\ No newline at end of file