Permalink
Browse files

patch: now a server can receive multiple messages

  • Loading branch information...
1 parent 2eb773d commit f0dde807267aa3d45962f3f578338383f215ab2d @kazuyukitanimura committed Nov 23, 2010
Showing with 6 additions and 5 deletions.
  1. +6 −5 sws.js
View
11 sws.js
@@ -75,10 +75,11 @@ module.exports = function verifier(options)
l=onmsgs.length
for(var i=0;i<l;i++) {
var fn = onmsgs[i]
- if(!session) {
- fn(msg)
- }
- client.on('message',fn)
+ //if(!session) {
+ // fn(msg)
+ //}
+ //client.on('message',fn)
+ client.addListener('message',fn)
}
client.removeListener('message',first_verify)
})
@@ -96,4 +97,4 @@ module.exports = function verifier(options)
}
}
}
-}
+}

0 comments on commit f0dde80

Please sign in to comment.