sinatra-websocketio 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/README.md +3 -1
- data/lib/sinatra-websocketio/version.rb +1 -1
- data/sample/config.ru +6 -0
- metadata +1 -1
data/History.txt
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,9 @@ sinatra-websocketio
|
|
|
2
2
|
===================
|
|
3
3
|
|
|
4
4
|
* Node.js like WebSocket I/O plugin for Sinatra.
|
|
5
|
-
*
|
|
5
|
+
* https://github.com/shokai/sinatra-websocketio
|
|
6
|
+
* https://github.com/shokai/sinatra-websocketio/wiki
|
|
7
|
+
* [Handle 10K+ clients on 1 process](https://github.com/shokai/sinatra-websocketio/wiki/C10K)
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
Installation
|
data/sample/config.ru
CHANGED
|
@@ -13,4 +13,10 @@ require File.dirname(__FILE__)+'/main'
|
|
|
13
13
|
set :haml, :escape_html => true
|
|
14
14
|
set :websocketio, :port => 8080
|
|
15
15
|
|
|
16
|
+
case RUBY_PLATFORM
|
|
17
|
+
when /linux/i then EM.epoll
|
|
18
|
+
when /bsd/i then EM.kqueue
|
|
19
|
+
end
|
|
20
|
+
EM.set_descriptor_table_size 10000
|
|
21
|
+
|
|
16
22
|
run Sinatra::Application
|