LP#1776510 JS libs handle transport errors user/berick/lp1776510-js-transport-errors
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Jun 2018 16:12:45 +0000 (12:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 12 Jun 2018 16:12:47 +0000 (12:12 -0400)
commita4470a47895edf36512366063383e0f1462f040a
tree9c44d833730d2967a703d848a58398d6104cb396
parent71720f639e00d0e457bc8f967f8060b579bc2882
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>
src/javascript/opensrf.js