File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ var PubSubApiClient = class {
750750 * @returns {Promise<EventEmitter> } Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
751751 * @memberof PubSubApiClient.prototype
752752 */
753- async subscribeFromReplayId ( topicName , numRequested , replayId ) {
753+ async subscribeFromReplayId ( topicName , replayId , numRequested = null ) {
754754 return this . #subscribe( {
755755 topicName,
756756 numRequested,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default class PubSubApiClient {
4040 * @returns {Promise<EventEmitter> } Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
4141 * @memberof PubSubApiClient.prototype
4242 */
43- subscribeFromReplayId ( topicName : string , numRequested ?: number | null , replayId : number ) : Promise < EventEmitter > ;
43+ subscribeFromReplayId ( topicName : string , numRequested ?: number | null , replayId : number ) : Promise < EventEmitter > ;
4444 /**
4545 * Subscribes to a topic.
4646 * @param {string } topicName name of the topic that we're subscribing to
Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ var PubSubApiClient = class {
717717 * @returns {Promise<EventEmitter> } Promise that holds an emitter that allows you to listen to received events and stream lifecycle events
718718 * @memberof PubSubApiClient.prototype
719719 */
720- async subscribeFromReplayId ( topicName , numRequested , replayId ) {
720+ async subscribeFromReplayId ( topicName , replayId , numRequested = null ) {
721721 return this . #subscribe( {
722722 topicName,
723723 numRequested,
You can’t perform that action at this time.
0 commit comments