sinatra-cometio 0.3.4 → 0.3.5
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 +1 -0
- data/lib/js/cometio.js +1 -0
- data/lib/sinatra-cometio/version.rb +1 -1
- data/sample/README.md +0 -14
- metadata +1 -1
data/History.txt
CHANGED
data/README.md
CHANGED
data/lib/js/cometio.js
CHANGED
@@ -47,6 +47,7 @@ var CometIO = function(){
|
|
47
47
|
url : self.url,
|
48
48
|
data : {session : self.session},
|
49
49
|
success : function(data_arr){
|
50
|
+
if(typeof data_arr === "undefined" || !data_arr.length) return;
|
50
51
|
for(var i = 0; i < data_arr.length; i++){
|
51
52
|
var data = data_arr[i];
|
52
53
|
if(data) self.emit(data.type, data.data);
|
data/sample/README.md
CHANGED
@@ -24,17 +24,3 @@ CUI Client
|
|
24
24
|
----------
|
25
25
|
|
26
26
|
% ruby bin/cui_chat_client.rb
|
27
|
-
|
28
|
-
|
29
|
-
Deploy Heroku
|
30
|
-
-------------
|
31
|
-
|
32
|
-
% mkdir ~/cometio-sample
|
33
|
-
% cp -R ./ ~/cometio-sample/
|
34
|
-
% cd ~/cometio-sample
|
35
|
-
% git init
|
36
|
-
% git add ./
|
37
|
-
% git commit -m "first sample chat"
|
38
|
-
% heroku create --stack cedar
|
39
|
-
% git push heroku master
|
40
|
-
% heroku open
|