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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
var json = js2JSON({
service : this.service,
thread : this.thread,
var json = js2JSON({
service : this.service,
thread : this.thread,
- osrf_msg : [message.serialize()]
+ osrf_msg : [osrf_msg.serialize()]
});
OpenSRF.websocketConnection.send(json);
});
OpenSRF.websocketConnection.send(json);