projects
/
working
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c31fd3
)
per-tab websocket sender JS thinko repair
user/berick/websocket-per-tab-thinko
author
Bill Erickson
<berickxx@gmail.com>
Thu, 5 Feb 2015 15:34:40 +0000
(10:34 -0500)
committer
Bill Erickson
<berickxx@gmail.com>
Thu, 5 Feb 2015 15:34:42 +0000
(10:34 -0500)
Avoid referencing variable defined somewhere outside the send_ws()
function. Doing so happened to result in re-sending the same message
twice in some cases.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
src/javascript/opensrf.js
patch
|
blob
|
history
diff --git
a/src/javascript/opensrf.js
b/src/javascript/opensrf.js
index
ecc012d
..
d67fbfd
100644
(file)
--- a/
src/javascript/opensrf.js
+++ b/
src/javascript/opensrf.js
@@
-284,7
+284,7
@@
OpenSRF.Session.prototype.send_ws = function(osrf_msg) {
var json = js2JSON({
service : this.service,
thread : this.thread,
- osrf_msg : [
message
.serialize()]
+ osrf_msg : [
osrf_msg
.serialize()]
});
OpenSRF.websocketConnection.send(json);