Skip to content

Conversation

@Karrenbelt
Copy link
Collaborator

@Karrenbelt Karrenbelt commented Jan 30, 2026

Add support and tests for set_cancel_on_disconnect endpoint.

Closes #194

Changes

  • Implement set_cancel_on_disconnect endpoint support on the AccountOperations module.
  • Add integration test covering the new endpoint.

result = await self._private_api.rpc.get_account(params)
return result

async def set_cancel_on_disconnect(self, enabled: bool = True) -> Result:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no session for a async client.
Therefore this endpoint shouldnt be exposed on this endpoint type

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only relevant on websocket sessions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in the OpenAPI spec. This is an account-level (LightAccount wallet) operation. It may very well constitute a persistent state change at this level! Something you can toggle on and off.

result = self._private_api.rpc.get_account(params)
return result

def set_cancel_on_disconnect(self, enabled: bool = True) -> Result:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@8ball030 8ball030 merged commit 88961f9 into main Jan 30, 2026
1 check passed
@8ball030 8ball030 deleted the feat/set-cancel-on-disconnect branch January 30, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing set cancel on disconnect

3 participants