Эх сурвалжийг харах

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.
Joel Martin 14 жил өмнө
parent
commit
1756a30a48
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      include/websock.js

+ 1 - 1
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) {