]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1776510 JS libs handle transport errors
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Jun 2018 16:12:45 +0000 (12:12 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Nov 2018 15:44:44 +0000 (10:44 -0500)
commitec9f1a709c6f9a083dd25d01edb6eedc84dea556
tree9628c88e36e480882b74fa88832a9f233282ae3d
parenta8111283c54856c364342fcf739164b55bfda7ca
LP#1776510 JS libs handle transport errors

Teach the websocket client code to look for the transport_error flag
applied to the websocket wrapper message by the websocket gateway when a
request for an unavilable service is made.

When encountered, fire the transport or generic error handler callbacks,
if available.  Avoid any attempts to further process the message.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
src/javascript/opensrf.js