Skip to content

Support subscribe/unsubscribe Websocket messages#22

Merged
lekkas merged 2 commits into
mainfrom
wss-subscribe-unsubscribe
Jan 5, 2026
Merged

Support subscribe/unsubscribe Websocket messages#22
lekkas merged 2 commits into
mainfrom
wss-subscribe-unsubscribe

Conversation

@lekkas

@lekkas lekkas commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

Fixes #20

  • Support freshly released subscribe/unsubscribe websocket actions
  • Fix several bugs and improve code quality

@lekkas lekkas force-pushed the wss-subscribe-unsubscribe branch from ac0025a to e402151 Compare December 29, 2025 12:50
@lekkas

lekkas commented Dec 29, 2025

Copy link
Copy Markdown
Contributor Author

This PR ended up larger than intended, so I took a more cautious approach

  1. Added a significantly larger set of test cases
  2. Performed a careful review with the help of Opus 4.5 Thinking
  3. Planning to publish to npm under the beta tag and let it run on Nevua Markets for a few days before merging upstream

The API is nonbreaking and should work as a drop in replacement in practice. However, to be conservative, I will publish it as a major version change.

@lekkas lekkas changed the title wss subscribe unsubscribe Support subscribe/unsubscribe Websocket messages Dec 29, 2025
@lekkas lekkas force-pushed the wss-subscribe-unsubscribe branch from 9dd0310 to 0110bf7 Compare January 4, 2026 14:28
lekkas added 2 commits January 5, 2026 16:14
- Big rewrite, simplified code
- Asset groups are no longer supported; a single websocket connection will be created.
- Added a lot of new tests
@lekkas lekkas force-pushed the wss-subscribe-unsubscribe branch from fb81f5d to a69cd5c Compare January 5, 2026 14:15
@lekkas

lekkas commented Jan 5, 2026

Copy link
Copy Markdown
Contributor Author
  • Added extensive tests
  • Simplified code structure and removed websocket group management
  • Ran for a few days without issues on production on https://nevua.markets

@lekkas lekkas merged commit 65e2317 into main Jan 5, 2026
2 checks passed
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.

Support freshly shipped Polymarket WSS subscribe/unsubscribe operations

1 participant