Skip to content

Commit

Permalink
Add ee param to heartbeat, subscribe and leave endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Jan 26, 2024
1 parent bc977cc commit be47efe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pubnub/endpoints/presence/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def custom_params(self):
if self._state is not None and len(self._state) > 0:
params['state'] = utils.url_write(self._state)

if hasattr(self.pubnub, '_subscription_manager'):
params.update(self.pubnub._subscription_manager.get_custom_params())

return params

def create_response(self, envelope):
Expand Down
3 changes: 3 additions & 0 deletions pubnub/endpoints/presence/leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def custom_params(self):
if len(self._groups) > 0:
params['channel-group'] = utils.join_items(self._groups)

if hasattr(self.pubnub, '_subscription_manager'):
params.update(self.pubnub._subscription_manager.get_custom_params())

return params

def build_path(self):
Expand Down
3 changes: 3 additions & 0 deletions pubnub/endpoints/pubsub/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def custom_params(self):
if not self.pubnub.config.heartbeat_default_values:
params['heartbeat'] = self.pubnub.config.presence_timeout

if hasattr(self.pubnub, '_subscription_manager'):
params.update(self.pubnub._subscription_manager.get_custom_params())

return params

def create_response(self, envelope):
Expand Down

0 comments on commit be47efe

Please sign in to comment.