Commit 1756a30a authored by Joel Martin's avatar Joel Martin

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.
parent 8b502df2
...@@ -188,7 +188,7 @@ function flush() { ...@@ -188,7 +188,7 @@ function flush() {
function send(arr) { function send(arr) {
//Util.Debug(">> send_array: " + arr); //Util.Debug(">> send_array: " + arr);
sQ = sQ.concat(arr); sQ = sQ.concat(arr);
flush(); return flush();
}; };
function send_string(str) { function send_string(str) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment