Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Dec 2019
    Posts
    66

    Question 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.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    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

  1. Replies: 6
    Last Post: December 12th, 2017, 06:28 PM
  2. Replies: 3
    Last Post: February 25th, 2015, 10:18 AM
  3. Replies: 3
    Last Post: June 26th, 2014, 03:03 PM
  4. Licence check failed on HP amd64 server
    By pakse in forum General
    Replies: 2
    Last Post: November 12th, 2007, 06:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:05 PM.