sinatra-websocketio 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.md +2 -2
- data/lib/js/event_emitter.js +3 -3
- data/lib/sinatra-websocketio/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
sinatra-websocketio
|
2
2
|
===================
|
3
|
+
WebSocket component for [Sinatra RocketIO](https://github.com/shokai/sinatra-rocketio)
|
3
4
|
|
4
|
-
* Node.js like WebSocket I/O plugin for Sinatra
|
5
|
+
* Node.js like WebSocket I/O plugin for Sinatra
|
5
6
|
* https://github.com/shokai/sinatra-websocketio
|
6
7
|
* https://github.com/shokai/sinatra-websocketio/wiki
|
7
8
|
* [Handle 10K+ clients on 1 process](https://github.com/shokai/sinatra-websocketio/wiki/C10K)
|
8
|
-
* This is a component of the [RocketIO](https://github.com/shokai/sinatra-rocketio)
|
9
9
|
|
10
10
|
|
11
11
|
Installation
|
data/lib/js/event_emitter.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
// event_emitter.js v0.0.
|
2
|
-
// https://github.com/shokai/
|
1
|
+
// event_emitter.js v0.0.7
|
2
|
+
// https://github.com/shokai/event_emitter.js
|
3
3
|
// (c) 2013 Sho Hashimoto <hashimoto@shokai.org>
|
4
4
|
// The MIT License
|
5
5
|
var EventEmitter = function(){
|
@@ -7,7 +7,7 @@ var EventEmitter = function(){
|
|
7
7
|
this.apply = function(target, prefix){
|
8
8
|
if(!prefix) prefix = "";
|
9
9
|
for(var func in self){
|
10
|
-
if(self.hasOwnProperty(func)){
|
10
|
+
if(self.hasOwnProperty(func) && func !== "apply"){
|
11
11
|
target[prefix+func] = this[func];
|
12
12
|
}
|
13
13
|
}
|