-
July 15th, 2020, 12:55 PM
#1
Notify client when subscription failed
How the server can notify the client that the subcription failed due to a specific error?
Based on the documentation, SubscriptionException will not notify the clients even if it was thrown, however, the light streamer client has onSubscribtionError method which will be called when the client is notified about the failure of the subscription.
I didn't figure out how can I notify the client.
Waiting your help.
-
July 15th, 2020, 02:05 PM
#2
There are methods of the MetadataProvider interface that are entitled to authorize the subscription which can return errors that will be communicated by the server to the client.
In particular notifyNewTables, getItems, and getSchema.
Once validated by the Metadata the subscription is considered appropriate and correct therefore an error in the subscribe is something unexpected and not pertaining to the client.
If you really want to communicate errors to the clients in this phase you have to do it applicatively, that is, do not throw the exception but send special updates with the errors.
Regards,
Giuseppe
Similar Threads
-
By mahmoud ragaei in forum General
Replies: 6
Last Post: December 12th, 2017, 05:28 PM
-
By dollar8 in forum Client SDKs
Replies: 3
Last Post: February 25th, 2015, 09:18 AM
-
By tony99nyr in forum Client SDKs
Replies: 3
Last Post: June 26th, 2014, 02:03 PM
-
By pakse in forum General
Replies: 2
Last Post: November 12th, 2007, 05:44 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:49 PM.
Bookmarks