]> 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:39:45 +0000 (10:39 -0500)
commit705599ff6aa29857e8ed1b3da11e6e8ba05e9aa9
tree70a33e0a912631807701f42b739fddf4029c426c
parent884e00c41abd33ed8785acc1bc5958fd027a0807
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