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:21 +0000 (10:44 -0500)
commitd2683cd6d552fdbc6dc25e24cc2aa6c047243b4c
tree3e99100e412b6da09cbe6518006c7685f058464d
parent0df7943369cbd5416276de84b428cd0a27a2b1eb
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