From 1756a30a4891e137849a161bd66e56d2719ae52d Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sun, 23 Jan 2011 19:21:04 -0600 Subject: [PATCH] websock.send returns true/false. If all send data was flushed from the send queue then return true, otherwise false. This doesn't mean the data won't be sent, just that it wasn't sent this time and is queued. --- include/websock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/websock.js b/include/websock.js index e02411f6..4901faf1 100644 --- a/include/websock.js +++ b/include/websock.js @@ -188,7 +188,7 @@ function flush() { function send(arr) { //Util.Debug(">> send_array: " + arr); sQ = sQ.concat(arr); - flush(); + return flush(); }; function send_string(str) {