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 CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.5 2013-03-10
2
+
3
+ * handle 10K clients
4
+
1
5
  === 0.0.4 2013-03-10
2
6
 
3
7
  * close websocket if session_id duplicate
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
- * http://github.com/shokai/sinatra-websocketio
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
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: