photon icon indicating copy to clipboard operation
photon copied to clipboard

Add new subsccription param. 'failOnEmpty'

Open daviddawson opened this issue 7 years ago • 1 comments

Add a new sub param 'failOnEmpty'

When this is set to 'true' and subscribed stream does not exist (ie, no events in that stream), then Photon should respond with a single event of type 'NoSuchStream' and then immediately issue the complete signal, closing the connection.

daviddawson avatar Mar 03 '17 20:03 daviddawson

This can be worked around in my case by using stream-type:'cold' and checking to see if numitems.length>0

daviddawson avatar Apr 16 '17 08:04 daviddawson